MangaRock - Update Error Message (#2030)
* Update build.gradle * Update pageListParse Error Message * Error Message for Popular and Latest
This commit is contained in:
parent
c339bcdab7
commit
2ff980a9f7
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Manga Rock'
|
||||
pkgNameSuffix = 'en.mangarock'
|
||||
extClass = '.MangaRock'
|
||||
extVersionCode = 15
|
||||
extVersionCode = 16
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ class MangaRock : HttpSource() {
|
|||
return response.newBuilder().body(rb).build()
|
||||
}).build()
|
||||
|
||||
override fun latestUpdatesRequest(page: Int) = GET("$apiUrl/mrs_latest")
|
||||
override fun latestUpdatesRequest(page: Int) = throw Exception("Manga Rock has shut down. Please migrate to another source") //GET("$apiUrl/mrs_latest")
|
||||
|
||||
override fun latestUpdatesParse(response: Response): MangasPage {
|
||||
val res = response.body()!!.string()
|
||||
|
@ -60,7 +60,7 @@ class MangaRock : HttpSource() {
|
|||
return getMangasPageFromJsonList(list)
|
||||
}
|
||||
|
||||
override fun popularMangaRequest(page: Int) = GET("$apiUrl/mrs_latest")
|
||||
override fun popularMangaRequest(page: Int) = throw Exception("Manga Rock has shut down. Please migrate to another source") //GET("$apiUrl/mrs_latest")
|
||||
|
||||
override fun popularMangaParse(response: Response): MangasPage {
|
||||
val res = response.body()!!.string()
|
||||
|
@ -255,12 +255,15 @@ class MangaRock : HttpSource() {
|
|||
override fun pageListRequest(chapter: SChapter) = GET(apiUrl + chapter.url, headers)
|
||||
|
||||
override fun pageListParse(response: Response): List<Page> {
|
||||
/*
|
||||
val obj = JSONObject(response.body()!!.string()).getJSONArray("data")
|
||||
val pages = ArrayList<Page>()
|
||||
for (i in 0 until obj.length()) {
|
||||
pages.add(Page(i, "", obj.getJSONObject(i).getString("url")))
|
||||
}
|
||||
return pages
|
||||
*/
|
||||
return throw Exception("Manga Rock has shut down. Please migrate to another source")
|
||||
}
|
||||
|
||||
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("This method should not be called!")
|
||||
|
|
Loading…
Reference in New Issue