MangaDex: prompt users to use MangaPlus extension for licensed chapters
This commit is contained in:
parent
be6e992590
commit
e93353fe29
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangadexFactory'
|
||||
extVersionCode = 65
|
||||
extVersionCode = 66
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -482,6 +482,10 @@ open class Mangadex(override val lang: String, private val internalLang: String,
|
|||
override fun chapterFromElement(element: Element) = throw Exception("Not used")
|
||||
|
||||
override fun pageListRequest(chapter: SChapter): Request {
|
||||
if (chapter.scanlator == "MangaPlus") {
|
||||
throw Exception("Chapter is licensed; use the MangaPlus extension")
|
||||
}
|
||||
|
||||
val server = getServer()
|
||||
return GET("$baseUrl${chapter.url}?server=$server")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue