mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 16:37:23 +00:00
fix link
This commit is contained in:
@@ -1058,9 +1058,10 @@ class Ehentai extends ComicSource {
|
|||||||
if(url.includes('?')) {
|
if(url.includes('?')) {
|
||||||
url = url.split('?')[0]
|
url = url.split('?')[0]
|
||||||
}
|
}
|
||||||
let uri = new URL(url)
|
let reg = RegExp("https?://(e-|ex)hentai.org/g/(\\d+)/(\\w+)/")
|
||||||
if(uri.pathname.startsWith('/g/')) {
|
let match = reg.exec(url)
|
||||||
return url
|
if(match) {
|
||||||
|
return `https://e-hentai.org/g/${match[2]}/${match[3]}/`
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user