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

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
src/ru/libmanga
build.gradle
src/eu/kanade/tachiyomi/extension/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
} }