parent
f91bc2fdd1
commit
2b3d92981a
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Manga Rock'
|
||||
pkgNameSuffix = 'en.mangarock'
|
||||
extClass = '.MangaRock'
|
||||
extVersionCode = 10
|
||||
extVersionCode = 11
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -188,11 +188,11 @@ class MangaRock : HttpSource() {
|
|||
private fun getMangaApiRequest(manga: SManga): Request {
|
||||
// Handle older entries with API URL ("/info?oid=mrs-series-...")
|
||||
if (manga.url.startsWith("/info")) {
|
||||
return GET(apiUrl + manga.url, headers)
|
||||
return GET("$apiUrl${manga.url}&country=", headers)
|
||||
}
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue