Skip to content

Commit

Permalink
Update SubtitleTranslate - lingva.as
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Dec 10, 2024
1 parent 5f9a58d commit c3ab34e
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions SubtitleTranslate - lingva.as
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ string JsonParseV1(string json)
if (Reader.parse(json, Root) && Root.isObject()) {
JsonValue translation = Root["translation"];
if (translation.isString()) ret = translation.asString();
HostPrintUTF8("[*] (f: JsonParseV1) ret: " + ret);// for debug print
HostPrintUTF8("(f: JsonParseV1) ret: " + ret);// for debug print
}

return ret;
Expand Down Expand Up @@ -194,175 +194,175 @@ string ServerLogin(string User, string Pass)
{
server_url = "https://lingva.ml";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.catswords.net";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.plausibility.cloud";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.alxserver.de";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.abrendan.dev";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://lingva.dialectapp.org";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.sphererapids.com";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://salucyr69.synology.me:6455";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translater.perfectpurple.top";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.palmasolutions.net";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://nyc1.lv.ggtyler.dev";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://lingva.sharktale.xyz";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.gururaja.in";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://lingva.steel77.ddnss.de";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.mnsr.net";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://lingva.privacytools.click";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://lingva.adminforge.de";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://fanyi.qz.ci";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://lingva.seasi.dev";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://lingva.lunar.icu";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.nexo.moe";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
}

server_url = "https://translate.ssnc.uk";
text = HostUrlGetString(server_url+"/api/v1/en/zh/hello", UserAgent);
HostPrintUTF8("[*] (f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
HostPrintUTF8("(f: ServerLogin) url: " + server_url + ", text: " + text); // for debug print
start_pos = text.findFirst("translation", 0);
if (start_pos > 0){
return "200 ok";
Expand Down Expand Up @@ -409,7 +409,7 @@ string Translate(string Text, string &in SrcLang, string &in DstLang)
string enc = HostUrlEncode(Text);
string url = server_url + "/api/v1/" + _SrcLang + "/" + _DstLang + "/" + enc;
string text = HostUrlGetString(url, UserAgent);
HostPrintUTF8("[*] text (f: Translate):" + text); // for debug print
HostPrintUTF8("(f: Translate) text:" + text); // for debug print

string ret = JsonParseV1(text);
if (ret.length() > 0)
Expand Down

0 comments on commit c3ab34e

Please sign in to comment.