Skip to content

Commit

Permalink
Translators/Auto: autoTTSUrl should invoke initHttpService (fix #481)
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Jan 31, 2023
1 parent f8766e6 commit d3916e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/Translators/Auto.awk
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ function autoInit() {

function autoTTSUrl(text, tl) {
# TODO: support Bing
Option["engine"] = "google"
initHttpService()
return googleTTSUrl(text, tl)
# TODO: reset engine to auto
}

function autoWebTranslateUrl(uri, sl, tl, hl) {
# TODO: support Bing
Option["engine"] = "google"
initHttpService()
return googleWebTranslateUrl(uri, sl, tl, hl)
# TODO: reset engine to auto
}

function autoTranslate(text, sl, tl, hl,
Expand Down

0 comments on commit d3916e7

Please sign in to comment.