[RU] AllHentai. Fixed loading images (#5521)
This commit is contained in:
parent
e7f03ed191
commit
23bb281e95
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'AllHentai'
|
||||
pkgNameSuffix = 'ru.allhentai'
|
||||
extClass = '.AllHentai'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ class AllHentai : ParsedHttpSource() {
|
|||
|
||||
override val name = "AllHentai"
|
||||
|
||||
override val baseUrl = "http://allhentai.ru"
|
||||
override val baseUrl = "https://allhentai.ru"
|
||||
|
||||
override val lang = "ru"
|
||||
|
||||
|
@ -205,6 +205,9 @@ class AllHentai : ParsedHttpSource() {
|
|||
} else {
|
||||
if (urlParts[1].endsWith("/manga/")) {
|
||||
urlParts[0] + urlParts[2]
|
||||
} else if (urlParts[1].isEmpty()) {
|
||||
val imageUrl = urlParts[2].split('?')
|
||||
"https:" + urlParts[0] + imageUrl[0]
|
||||
} else {
|
||||
urlParts[1] + urlParts[0] + urlParts[2]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue