Potentially address missing MangaRock chapters (closes #1083) (#1091)

This commit is contained in:
Eugene 2019-05-08 05:16:35 -04:00 committed by Carlos
parent f91bc2fdd1
commit 2b3d92981a
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Manga Rock' appName = 'Tachiyomi: Manga Rock'
pkgNameSuffix = 'en.mangarock' pkgNameSuffix = 'en.mangarock'
extClass = '.MangaRock' extClass = '.MangaRock'
extVersionCode = 10 extVersionCode = 11
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -188,11 +188,11 @@ class MangaRock : HttpSource() {
private fun getMangaApiRequest(manga: SManga): Request { private fun getMangaApiRequest(manga: SManga): Request {
// Handle older entries with API URL ("/info?oid=mrs-series-...") // Handle older entries with API URL ("/info?oid=mrs-series-...")
if (manga.url.startsWith("/info")) { if (manga.url.startsWith("/info")) {
return GET(apiUrl + manga.url, headers) return GET("$apiUrl${manga.url}&country=", headers)
} }
val oid = manga.url.substringAfterLast("/") val oid = manga.url.substringAfterLast("/")
return GET("$apiUrl/info?oid=$oid", headers) return GET("$apiUrl/info?oid=$oid&country=", headers)
} }
override fun mangaDetailsParse(response: Response) = SManga.create().apply { override fun mangaDetailsParse(response: Response) = SManga.create().apply {