Add image search

This commit is contained in:
seven332 committed 2016-03-29 20:46:47 +08:00
1 parent 311185825e
commit 231e463605
19 files changed
+854 -65

No files matched your search

@@ -16,6 +16,8 @@
package com.hippo.ehviewer.client;
import android.support.annotation.NonNull;
import com.hippo.ehviewer.Settings;
import com.hippo.network.UrlBuilder;
@@ -99,4 +101,15 @@ public class EhUrl {
public static String getTagDefinitionUrl(String tag) {
return "https://ehwiki.org/wiki/" + tag.replace(' ', '_');
}
@NonNull
public static String getImageSearchUrl() {
switch (Settings.getGallerySite()) {
default:
case SITE_G:
return "http://ul.e-hentai.org/image_lookup.php";
case SITE_EX:
return "http://ul.exhentai.org/image_lookup.php";
}
}
}