Izneo: update for extensions-lib 1.4 (#15364)

This commit is contained in:
ObserverOfTime 2023-02-15 18:05:11 +02:00 committed by GitHub
parent 0922663031
commit 930acd1c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'izneo (webtoons)' extName = 'izneo (webtoons)'
pkgNameSuffix = 'all.izneo' pkgNameSuffix = 'all.izneo'
extClass = '.IzneoFactory' extClass = '.IzneoFactory'
extVersionCode = 3 extVersionCode = 4
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -74,10 +74,6 @@ class Izneo(override val lang: String) : ConfigurableSource, HttpSource() {
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
GET("$apiUrl/free?offset=${page - 1}&order=3&abo=0", apiHeaders) GET("$apiUrl/free?offset=${page - 1}&order=3&abo=0", apiHeaders)
// Request the real URL for the webview
override fun mangaDetailsRequest(manga: SManga) =
GET(ORIGIN + manga.url, headers)
override fun pageListRequest(chapter: SChapter) = override fun pageListRequest(chapter: SChapter) =
GET(ORIGIN + "/book/" + chapter.url, apiHeaders) GET(ORIGIN + "/book/" + chapter.url, apiHeaders)
@ -155,6 +151,11 @@ class Izneo(override val lang: String) : ConfigurableSource, HttpSource() {
return Observable.just(chapters) return Observable.just(chapters)
} }
override fun getMangaUrl(manga: SManga) = ORIGIN + manga.url
override fun getChapterUrl(chapter: SChapter) =
throw UnsupportedOperationException("Not implemented!")
override fun setupPreferenceScreen(screen: PreferenceScreen) { override fun setupPreferenceScreen(screen: PreferenceScreen) {
EditTextPreference(screen.context).apply { EditTextPreference(screen.context).apply {
key = "username" key = "username"
@ -194,6 +195,9 @@ class Izneo(override val lang: String) : ConfigurableSource, HttpSource() {
} }
}.jsonObject }.jsonObject
override fun mangaDetailsRequest(manga: SManga) =
throw UnsupportedOperationException("Not used")
override fun chapterListRequest(manga: SManga) = override fun chapterListRequest(manga: SManga) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException("Not used")