Monochrome: update for extensions-lib 1.4 (#15341)
This commit is contained in:
parent
9b4e5809fb
commit
d43b2d2239
|
@ -56,10 +56,6 @@ open class MonochromeCMS(
|
|||
}
|
||||
}
|
||||
|
||||
// Request the actual manga URL for the webview
|
||||
override fun mangaDetailsRequest(manga: SManga) =
|
||||
GET("$baseUrl/manga/${manga.url}", headers)
|
||||
|
||||
override fun fetchMangaDetails(manga: SManga) =
|
||||
Observable.just(manga.apply { initialized = true })!!
|
||||
|
||||
|
@ -87,6 +83,11 @@ open class MonochromeCMS(
|
|||
return Observable.just(pages)
|
||||
}
|
||||
|
||||
override fun getMangaUrl(manga: SManga) = "$baseUrl/manga/${manga.url}"
|
||||
|
||||
override fun getChapterUrl(chapter: SChapter) =
|
||||
"$baseUrl/chapters/${chapter.url.subSequence(37, 73)}"
|
||||
|
||||
private fun mangaFromAPI(manga: Manga) =
|
||||
SManga.create().apply {
|
||||
url = manga.id
|
||||
|
@ -111,6 +112,9 @@ open class MonochromeCMS(
|
|||
override fun latestUpdatesRequest(page: Int) =
|
||||
throw UnsupportedOperationException("Not used!")
|
||||
|
||||
override fun mangaDetailsRequest(manga: SManga) =
|
||||
throw UnsupportedOperationException("Not used!")
|
||||
|
||||
override fun popularMangaParse(response: Response) =
|
||||
throw UnsupportedOperationException("Not used!")
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ class MonochromeGenerator : ThemeSourceGenerator {
|
|||
|
||||
override val themeClass = "MonochromeCMS"
|
||||
|
||||
override val baseVersionCode = 3
|
||||
override val baseVersionCode = 4
|
||||
|
||||
override val sources = listOf(
|
||||
SingleLang("Monochrome Scans", "https://manga.d34d.one", "en"),
|
||||
|
|
Loading…
Reference in New Issue