Fix pages with site static resources on readmanga/mintmanga (#487)
Fix pages with site static resources on readmanga/mintmanga
This commit is contained in:
parent
dfbd58920a
commit
b19c3b30c8
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: Mintmanga'
|
appName = 'Tachiyomi: Mintmanga'
|
||||||
pkgNameSuffix = 'ru.mintmanga'
|
pkgNameSuffix = 'ru.mintmanga'
|
||||||
extClass = '.Mintmanga'
|
extClass = '.Mintmanga'
|
||||||
extVersionCode = 6
|
extVersionCode = 7
|
||||||
extVersionSuffix = 6
|
extVersionSuffix = 7
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,12 @@ class Mintmanga : ParsedHttpSource() {
|
||||||
var i = 0
|
var i = 0
|
||||||
while (m.find()) {
|
while (m.find()) {
|
||||||
val urlParts = m.group().replace("[\"\']+".toRegex(), "").split(',')
|
val urlParts = m.group().replace("[\"\']+".toRegex(), "").split(',')
|
||||||
pages.add(Page(i++, "", urlParts[1] + urlParts[0] + urlParts[2]))
|
val url = if (urlParts[1].isEmpty() && urlParts[2].startsWith("/static/")) {
|
||||||
|
baseUrl + urlParts[2]
|
||||||
|
} else {
|
||||||
|
urlParts[1] + urlParts[0] + urlParts[2]
|
||||||
|
}
|
||||||
|
pages.add(Page(i++, "", url))
|
||||||
}
|
}
|
||||||
return pages
|
return pages
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: Readmanga'
|
appName = 'Tachiyomi: Readmanga'
|
||||||
pkgNameSuffix = 'ru.readmanga'
|
pkgNameSuffix = 'ru.readmanga'
|
||||||
extClass = '.Readmanga'
|
extClass = '.Readmanga'
|
||||||
extVersionCode = 6
|
extVersionCode = 7
|
||||||
extVersionSuffix = 6
|
extVersionSuffix = 7
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,12 @@ class Readmanga : ParsedHttpSource() {
|
||||||
var i = 0
|
var i = 0
|
||||||
while (m.find()) {
|
while (m.find()) {
|
||||||
val urlParts = m.group().replace("[\"\']+".toRegex(), "").split(',')
|
val urlParts = m.group().replace("[\"\']+".toRegex(), "").split(',')
|
||||||
pages.add(Page(i++, "", urlParts[1] + urlParts[0] + urlParts[2]))
|
val url = if (urlParts[1].isEmpty() && urlParts[2].startsWith("/static/")) {
|
||||||
|
baseUrl + urlParts[2]
|
||||||
|
} else {
|
||||||
|
urlParts[1] + urlParts[0] + urlParts[2]
|
||||||
|
}
|
||||||
|
pages.add(Page(i++, "", url))
|
||||||
}
|
}
|
||||||
return pages
|
return pages
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue