Remove deprecated hosts
This commit is contained in:
1 parent
919d22ebf1
commit
8ac2b027ec
3 files changed
+3
-6
No files matched your search
@@ -71,8 +71,6 @@
|
||||
<data android:scheme="https" />
|
||||
<data android:host="exhentai.org" />
|
||||
<data android:host="e-hentai.org" />
|
||||
<data android:host="g.e-hentai.org" />
|
||||
<data android:host="lofi.e-hentai.org" />
|
||||
</intent-filter>
|
||||
<intent-filter android:label="@string/keyword_search">
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
package com.hippo.ehviewer.client.exception
|
||||
|
||||
/**
|
||||
* It is an exception for get offensive tip for g.e-hentai.org
|
||||
* It is an exception for get offensive tip for e-hentai.org
|
||||
*/
|
||||
class OffensiveException : EhException("OFFENSIVE")
|
||||
@@ -81,9 +81,8 @@ fn get_thumb_key(url: &str) -> String {
|
||||
}
|
||||
|
||||
fn parse_token_and_gid(str: &str) -> (i64, String) {
|
||||
let reg = regex!(
|
||||
"https?://(?:exhentai.org|e-hentai.org|lofi.e-hentai.org)/(?:g|mpv)/(\\d+)/([0-9a-f]{10})"
|
||||
);
|
||||
let reg =
|
||||
regex!("https?://(?:exhentai.org|e-hentai.org(?:/lofi)?)/(?:g|mpv)/(\\d+)/([0-9a-f]{10})");
|
||||
let grp = reg.captures(str).unwrap();
|
||||
let token = &grp[2];
|
||||
let gid = grp[1].parse().unwrap();
|
||||
|
||||
Reference in new issue
Block a user