diff --git a/app/src/main/java/com/hippo/ehviewer/client/EhEngine.java b/app/src/main/java/com/hippo/ehviewer/client/EhEngine.java index 6e728c587..7a48cf6d5 100644 --- a/app/src/main/java/com/hippo/ehviewer/client/EhEngine.java +++ b/app/src/main/java/com/hippo/ehviewer/client/EhEngine.java @@ -77,6 +77,8 @@ public class EhEngine { private static final String SAD_PANDA_TYPE = "image/gif"; private static final String SAD_PANDA_LENGTH = "9615"; + private static final String KOKOMADE_URL = "https://exhentai.org/img/kokomade.jpg"; + public static final MediaType MEDIA_TYPE_JSON = MediaType.parse("application/json; charset=utf-8"); private static final MediaType MEDIA_TYPE_JPEG = MediaType.parse("image/jpeg"); @@ -101,6 +103,11 @@ public class EhEngine { throw new EhException("Sad Panda"); } + // Check kokomade + if (body != null && body.contains(KOKOMADE_URL)) { + throw new EhException("今回はここまで\n\n" + GetText.getString(R.string.kokomade_tip)); + } + if (e instanceof ParseException) { if (body != null && !body.contains("<")) { throw new EhException(body); diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index bb93e4c1e..404d49985 100755 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -93,6 +93,8 @@ 请先登陆 页面内容为空 + 设置->Eh->画廊站点->e-hentai + 本应用中内容来自互联网,部分内容可能对您的生理及心理造成难以恢复的伤害。本应用作者不会对由本应用造成的任何后果负责。\n\n未成年人应在监护人指导下使用本应用。 用户名不可为空 密码不可为空 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index c09531884..db357c2b6 100755 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -93,6 +93,8 @@ 請先登陸 頁面內容為空 + 設置->Eh->畫廊站點->e-hentai + 本應用中內容來自互聯網,部分內容可能對您的生理及心理造成難以恢復的傷害。本應用作者不會對由本應用造成的任何後果負責。\n\n未成年人應在監護人指導下使用本應用。 用户名不可為空 密碼不可為空 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index e4d20fad9..e63500f6f 100755 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -93,6 +93,8 @@ 請先登陸 頁面內容為空 + 設定->Eh->圖庫站台->e-hentai + 本應用程式中內容來自網際網路,部分內容可能對您的生理及心理造成難以恢復的傷害。本應用程式的作者不會對由其所造成的任何影響負責。\n\n未成年人應在監護人指導下使用本應用程式。 使用者名稱欄位不能為空 密碼欄位不能為空 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5c3a9dfe4..23fcee58f 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -135,6 +135,8 @@ Please login first Empty page + Settings->Eh->Gallery Site->e-hentai + The content of this application is from the Internet. Some of it may do physical or mental harm to you. You have learnt the risks above and would like to undertake them. Username cannot be an empty string Password cannot be an empty string