[Ru]Mangalib. Fix images with double slash (#5112)

Co-authored-by: pavkazzz <me@pavkazzz.ru>
This commit is contained in:
Pavka 2020-12-13 00:32:00 +03:00 committed by GitHub
parent ec2c76b350
commit e8b4ca5149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 25
extVersionCode = 26
libVersion = '1.2'
}

View File

@ -68,7 +68,7 @@ class LibManga : ConfigurableSource, HttpSource() {
private val servers = mapOf(
"secondary" to "https://img2.emanga.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) {
@ -301,7 +301,7 @@ class LibManga : ConfigurableSource, HttpSource() {
val pages = mutableListOf<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
}