[Ru]Mangalib. Fix images with double slash (#5112)
Co-authored-by: pavkazzz <me@pavkazzz.ru>
This commit is contained in:
parent
ec2c76b350
commit
e8b4ca5149
src/ru/libmanga
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = 'MangaLib'
|
extName = 'MangaLib'
|
||||||
pkgNameSuffix = 'ru.libmanga'
|
pkgNameSuffix = 'ru.libmanga'
|
||||||
extClass = '.LibManga'
|
extClass = '.LibManga'
|
||||||
extVersionCode = 25
|
extVersionCode = 26
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ class LibManga : ConfigurableSource, HttpSource() {
|
|||||||
private val servers = mapOf(
|
private val servers = mapOf(
|
||||||
"secondary" to "https://img2.emanga.ru",
|
"secondary" to "https://img2.emanga.ru",
|
||||||
"fourth" to "https://img4.imgslib.ru",
|
"fourth" to "https://img4.imgslib.ru",
|
||||||
"compress" to "https://img3.cdnlib.org",
|
"compress" to "https://img3.yaoilib.org",
|
||||||
)
|
)
|
||||||
|
|
||||||
override fun setupPreferenceScreen(screen: androidx.preference.PreferenceScreen) {
|
override fun setupPreferenceScreen(screen: androidx.preference.PreferenceScreen) {
|
||||||
@ -301,7 +301,7 @@ class LibManga : ConfigurableSource, HttpSource() {
|
|||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
|
|
||||||
pagesJson.forEach { page ->
|
pagesJson.forEach { page ->
|
||||||
pages.add(Page(page["p"].int, "", imageServerUrl + imgUrl + page["u"].string))
|
pages.add(Page(page["p"].int, "", imageServerUrl + "/" + imgUrl + page["u"].string))
|
||||||
}
|
}
|
||||||
return pages
|
return pages
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user