style: make variant names common
Some checks failed
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/jfmod Pipeline was successful
ci/woodpecker/tag/docs Pipeline was successful
ci/woodpecker/tag/jfmod Pipeline was successful
ci/woodpecker/manual/docs Pipeline was successful
ci/woodpecker/manual/jfmod Pipeline failed
Some checks failed
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/jfmod Pipeline was successful
ci/woodpecker/tag/docs Pipeline was successful
ci/woodpecker/tag/jfmod Pipeline was successful
ci/woodpecker/manual/docs Pipeline was successful
ci/woodpecker/manual/jfmod Pipeline failed
This commit is contained in:
parent
03ffeb9eee
commit
5b1fbcbb76
@ -111,7 +111,7 @@ public class GoogleTranslateService extends AbstractTranslateService<GoogleTrans
|
||||
|
||||
// Alternative methods to get the page source (kept for reference)
|
||||
// The HttpClient here is not the same as the one in libjf-commons, so adjust imports if you want to use them again
|
||||
// private static String get2(String url) {
|
||||
// private static String get(String url) {
|
||||
// // An attempt to use the stuff wrapped by HttpClient. Will need to test and (if it works) adjust commons, so it can be used again
|
||||
// try {
|
||||
// HttpClient client = HttpClient.newBuilder().followRedirects(HttpClient.Redirect.ALWAYS).build();
|
||||
@ -125,7 +125,7 @@ public class GoogleTranslateService extends AbstractTranslateService<GoogleTrans
|
||||
// }
|
||||
// }
|
||||
|
||||
// private static String get3(String url) {
|
||||
// private static String get(String url) {
|
||||
// // Technically, we should be using HttpClient, but Google Translate doesn't like it for some reason and this mess bypasses that
|
||||
// // based on https://github.com/jhy/jsoup/blob/master/src/main/java/org/jsoup/helper/HttpConnection.java
|
||||
// try {
|
||||
|
Loading…
Reference in New Issue
Block a user