Remove message in UnsupportedOperationException (#277)

This commit is contained in:
stevenyomi 2024-01-15 23:26:34 +08:00 committed by Draff
parent 3ceea4ab95
commit 4c8c21596b
275 changed files with 1356 additions and 1006 deletions

View File

@ -437,10 +437,15 @@ open class UriPartFilter(displayName: String, private val vals: Array<Pair<Strin
### Misc notes ### Misc notes
- Sometimes you may find no use for some inherited methods. If so just override them and throw exceptions: `throw UnsupportedOperationException("Not used.")` - Sometimes you may find no use for some inherited methods. If so just override them and throw
- You probably will find `getUrlWithoutDomain` useful when parsing the target source URLs. Keep in mind there's a current issue with spaces in the URL though, so if you use it, replace all spaces with URL encoded characters (like `%20`). exceptions: `throw UnsupportedOperationException()`
- If possible try to stick to the general workflow from `HttpSource`/`ParsedHttpSource`; breaking them may cause you more headache than necessary. - You probably will find `getUrlWithoutDomain` useful when parsing the target source URLs. Keep in
- By implementing `ConfigurableSource` you can add settings to your source, which is backed by [`SharedPreferences`](https://developer.android.com/reference/android/content/SharedPreferences). mind there's a current issue with spaces in the URL though, so if you use it, replace all spaces with
URL encoded characters (like `%20`).
- If possible try to stick to the general workflow from `HttpSource`/`ParsedHttpSource`; breaking
them may cause you more headache than necessary.
- By implementing `ConfigurableSource` you can add settings to your source, which is backed by
[`SharedPreferences`](https://developer.android.com/reference/android/content/SharedPreferences).
### Advanced Extension features ### Advanced Extension features

View File

@ -56,13 +56,13 @@ open class A3Manga(
override fun popularMangaNextPageSelector() = "li.next:not(.disabled)" override fun popularMangaNextPageSelector() = "li.next:not(.disabled)"
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used") override fun latestUpdatesSelector() = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException("Not used") override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not used") override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> { override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
return when { return when {
@ -92,11 +92,11 @@ open class A3Manga(
.build(), .build(),
) )
override fun searchMangaSelector(): String = throw UnsupportedOperationException("Not used") override fun searchMangaSelector(): String = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not used") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun searchMangaParse(response: Response): MangasPage { override fun searchMangaParse(response: Response): MangasPage {
val dto = response.parseAs<SearchResponseDto>() val dto = response.parseAs<SearchResponseDto>()
@ -213,7 +213,7 @@ open class A3Manga(
} }
} }
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
private inline fun <reified T> Response.parseAs(): T { private inline fun <reified T> Response.parseAs(): T {
return json.decodeFromString(body.string()) return json.decodeFromString(body.string())

View File

@ -134,35 +134,35 @@ abstract class BakkinReaderX(
} }
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int) = override fun popularMangaRequest(page: Int) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) = override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga) = override fun mangaDetailsRequest(manga: SManga) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun searchMangaParse(response: Response) = override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun popularMangaParse(response: Response) = override fun popularMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) = override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response) = override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun chapterListParse(response: Response) = override fun chapterListParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun pageListParse(response: Response) = override fun pageListParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
} }

View File

@ -40,19 +40,19 @@ open class ComicGamma(
thumbnail_url = element.selectFirst(Evaluator.Tag("img"))!!.absUrl("src") thumbnail_url = element.selectFirst(Evaluator.Tag("img"))!!.absUrl("src")
} }
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used.") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not used.") override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used.") override fun latestUpdatesSelector() = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException("Not used.") override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> =
fetchPopularManga(page).map { p -> MangasPage(p.mangas.filter { it.title.contains(query) }, false) } fetchPopularManga(page).map { p -> MangasPage(p.mangas.filter { it.title.contains(query) }, false) }
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not used.") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun searchMangaSelector() = throw UnsupportedOperationException("Not used.") override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException("Not used.") override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun pageListParse(document: Document) = override fun pageListParse(document: Document) =
document.select("#content > div[data-ptimg]").mapIndexed { i, e -> document.select("#content > div[data-ptimg]").mapIndexed { i, e ->
@ -91,7 +91,7 @@ open class ComicGamma(
override fun pageListRequest(chapter: SChapter) = override fun pageListRequest(chapter: SChapter) =
GET(baseUrl + chapter.url.toNewChapterUrl(), headers) GET(baseUrl + chapter.url.toNewChapterUrl(), headers)
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
companion object { companion object {
internal fun SimpleDateFormat.parseJST(date: String) = parse(date)?.apply { internal fun SimpleDateFormat.parseJST(date: String) = parse(date)?.apply {

View File

@ -188,15 +188,15 @@ open class EroMuse(override val name: String, override val baseUrl: String) : Ht
override fun fetchPopularManga(page: Int): Observable<MangasPage> = fetchManga("$baseUrl/comics/album/Various-Authors", page, "") override fun fetchPopularManga(page: Int): Observable<MangasPage> = fetchManga("$baseUrl/comics/album/Various-Authors", page, "")
override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException("Not used") override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException()
override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used") override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
// Latest // Latest
override fun fetchLatestUpdates(page: Int): Observable<MangasPage> = fetchManga("$baseUrl/comics/album/Various-Authors?sort=date", page, "date") override fun fetchLatestUpdates(page: Int): Observable<MangasPage> = fetchManga("$baseUrl/comics/album/Various-Authors?sort=date", page, "date")
override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException("Not used") override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used") override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException()
// Search // Search
@ -228,8 +228,8 @@ open class EroMuse(override val name: String, override val baseUrl: String) : Ht
.map { response -> parseManga(response.asJsoup()) } .map { response -> parseManga(response.asJsoup()) }
} }
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException()
override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used") override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
// Details // Details
@ -332,7 +332,7 @@ open class EroMuse(override val name: String, override val baseUrl: String) : Ht
return parsePages(response.asJsoup()) return parsePages(response.asJsoup())
} }
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -190,7 +190,7 @@ abstract class FansubsCat(
override fun pageListParse(response: Response): List<Page> = parsePageListFromJson(response) override fun pageListParse(response: Response): List<Page> = parsePageListFromJson(response)
override fun imageUrlParse(response: Response): String = override fun imageUrlParse(response: Response): String =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
// Filter // Filter
override fun getFilterList() = FilterList( override fun getFilterList() = FilterList(

View File

@ -263,7 +263,7 @@ abstract class FlixScans(
} }
} }
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not Used") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
protected inline fun <reified T> Response.parseAs(): T = protected inline fun <reified T> Response.parseAs(): T =
use { body.string() }.let(json::decodeFromString) use { body.string() }.let(json::decodeFromString)

View File

@ -333,7 +333,7 @@ abstract class FMReader(
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
private class TextField(name: String, val key: String) : Filter.Text(name) private class TextField(name: String, val key: String) : Filter.Text(name)
private class Status : Filter.Select<String>("Status", arrayOf("Any", "Completed", "Ongoing")) private class Status : Filter.Select<String>("Status", arrayOf("Any", "Completed", "Ongoing"))

View File

@ -271,7 +271,7 @@ abstract class FoolSlide(
} }
} }
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
protected val preferences by lazy { protected val preferences by lazy {
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)!! Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)!!

View File

@ -255,7 +255,7 @@ abstract class GroupLe(
} }
override fun chapterFromElement(element: Element): SChapter { override fun chapterFromElement(element: Element): SChapter {
throw Exception("Not used") throw UnsupportedOperationException()
} }
override fun prepareNewChapter(chapter: SChapter, manga: SManga) { override fun prepareNewChapter(chapter: SChapter, manga: SManga) {

View File

@ -455,7 +455,7 @@ abstract class Guya(
// ----------------- Things we aren't supporting ----------------- // ----------------- Things we aren't supporting -----------------
override fun mangaDetailsParse(response: Response): SManga { override fun mangaDetailsParse(response: Response): SManga {
throw UnsupportedOperationException("Unused") throw UnsupportedOperationException()
} }
override fun chapterListParse(response: Response): List<SChapter> { override fun chapterListParse(response: Response): List<SChapter> {
@ -467,11 +467,11 @@ abstract class Guya(
} }
override fun searchMangaParse(response: Response): MangasPage { override fun searchMangaParse(response: Response): MangasPage {
throw UnsupportedOperationException("Unused.") throw UnsupportedOperationException()
} }
override fun imageUrlParse(response: Response): String { override fun imageUrlParse(response: Response): String {
throw UnsupportedOperationException("Unused.") throw UnsupportedOperationException()
} }
companion object { companion object {

View File

@ -274,7 +274,7 @@ abstract class HentaiHand(
Page(index, "", imgUrl) Page(index, "", imgUrl)
} }
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
// Authorization // Authorization

View File

@ -123,7 +123,7 @@ abstract class LibGroup(
.build() .build()
// Latest // Latest
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used") // popularMangaRequest() override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException() // popularMangaRequest()
override fun fetchLatestUpdates(page: Int): Observable<MangasPage> { override fun fetchLatestUpdates(page: Int): Observable<MangasPage> {
if (csrfToken.isEmpty()) { if (csrfToken.isEmpty()) {
return client.newCall(popularMangaRequest(page)) return client.newCall(popularMangaRequest(page))

View File

@ -277,7 +277,7 @@ abstract class MadTheme(
} }
override fun imageUrlParse(document: Document): String = override fun imageUrlParse(document: Document): String =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
// Date logic lifted from Madara // Date logic lifted from Madara
private fun parseChapterDate(date: String?): Long { private fun parseChapterDate(date: String?): Long {

View File

@ -269,7 +269,7 @@ abstract class MangaBox(
return GET(page.imageUrl!!, headersBuilder().set("Referer", page.url).build()) return GET(page.imageUrl!!, headersBuilder().set("Referer", page.url).build())
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Based on change_alias JS function from Mangakakalot's website // Based on change_alias JS function from Mangakakalot's website
@SuppressLint("DefaultLocale") @SuppressLint("DefaultLocale")

View File

@ -36,16 +36,16 @@ abstract class MangaCatalog(
title = name title = name
url = sourceurl url = sourceurl
} }
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used") override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector(): String? = throw Exception("Not used") override fun popularMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun popularMangaSelector(): String = throw Exception("Not used") override fun popularMangaSelector(): String = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element) = throw Exception("Not used") override fun popularMangaFromElement(element: Element) = throw UnsupportedOperationException()
// Latest // Latest
override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used") override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector(): String? = throw Exception("Not used") override fun latestUpdatesNextPageSelector(): String? = throw UnsupportedOperationException()
override fun latestUpdatesSelector(): String = throw Exception("Not used") override fun latestUpdatesSelector(): String = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element): SManga = throw Exception("Not used") override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException()
// Search // Search
@ -59,10 +59,10 @@ abstract class MangaCatalog(
return Observable.just(MangasPage(mangas, false)) return Observable.just(MangasPage(mangas, false))
} }
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw Exception("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw Exception("Not used") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun searchMangaSelector() = throw Exception("Not used") override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element) = throw Exception("Not used") override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()
// Get Override // Get Override
@ -106,5 +106,5 @@ abstract class MangaCatalog(
Page(index, "", img.attr("src")) Page(index, "", img.attr("src"))
} }
override fun imageUrlParse(document: Document): String = throw Exception("Not Used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
} }

View File

@ -116,7 +116,7 @@ abstract class MangAdventure(
} }
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun getMangaUrl(manga: SManga) = "$baseUrl/reader/${manga.url}" override fun getMangaUrl(manga: SManga) = "$baseUrl/reader/${manga.url}"

View File

@ -279,7 +279,7 @@ abstract class MangaHub(
} }
override fun chapterFromElement(element: Element): SChapter { override fun chapterFromElement(element: Element): SChapter {
throw UnsupportedOperationException("Not Used") throw UnsupportedOperationException()
} }
private fun parseChapterDate(date: String): Long { private fun parseChapterDate(date: String): Long {
@ -361,7 +361,7 @@ abstract class MangaHub(
.doOnError { refreshApiKey(chapter) } .doOnError { refreshApiKey(chapter) }
.retry(1) .retry(1)
override fun pageListParse(document: Document): List<Page> = throw UnsupportedOperationException("Not used") override fun pageListParse(document: Document): List<Page> = throw UnsupportedOperationException()
override fun pageListParse(response: Response): List<Page> { override fun pageListParse(response: Response): List<Page> {
val chapterObject = json.decodeFromString<ApiChapterPagesResponse>(response.body.string()) val chapterObject = json.decodeFromString<ApiChapterPagesResponse>(response.body.string())
@ -393,7 +393,7 @@ abstract class MangaHub(
return GET(page.url, newHeaders) return GET(page.url, newHeaders)
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// filters // filters
private class Genre(title: String, val key: String) : Filter.TriState(title) { private class Genre(title: String, val key: String) : Filter.TriState(title) {

View File

@ -78,5 +78,5 @@ abstract class MangaRawTheme(
} }
} }
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
} }

View File

@ -503,15 +503,15 @@ abstract class MangaThemesia(
protected open fun Elements.imgAttr(): String = this.first()!!.imgAttr() protected open fun Elements.imgAttr(): String = this.first()!!.imgAttr()
// Unused // Unused
override fun popularMangaSelector(): String = throw UnsupportedOperationException("Not used") override fun popularMangaSelector(): String = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") override fun popularMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector(): String? = throw UnsupportedOperationException("Not used") override fun popularMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun latestUpdatesSelector(): String = throw UnsupportedOperationException("Not used") override fun latestUpdatesSelector(): String = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector(): String? = throw UnsupportedOperationException("Not used") override fun latestUpdatesNextPageSelector(): String? = throw UnsupportedOperationException()
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
override fun setupPreferenceScreen(screen: PreferenceScreen) { override fun setupPreferenceScreen(screen: PreferenceScreen) {
addRandomUAPreferenceToScreen(screen) addRandomUAPreferenceToScreen(screen)

View File

@ -201,7 +201,7 @@ abstract class MangaWorld(
} }
} }
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
override fun imageRequest(page: Page): Request { override fun imageRequest(page: Page): Request {
val imgHeader = Headers.Builder().apply { val imgHeader = Headers.Builder().apply {

View File

@ -96,7 +96,7 @@ open class MCCMS(
} }
} }
override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not used.") override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException()
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> = Observable.fromCallable { override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> = Observable.fromCallable {
val id = getMangaId(manga.url) val id = getMangaId(manga.url)
@ -112,7 +112,7 @@ open class MCCMS(
protected open fun getMangaId(url: String) = url.substringAfterLast('/') protected open fun getMangaId(url: String) = url.substringAfterLast('/')
override fun chapterListParse(response: Response): List<SChapter> = throw UnsupportedOperationException("Not used.") override fun chapterListParse(response: Response): List<SChapter> = throw UnsupportedOperationException()
override fun pageListRequest(chapter: SChapter): Request = override fun pageListRequest(chapter: SChapter): Request =
GET(baseUrl + chapter.url, pcHeaders) GET(baseUrl + chapter.url, pcHeaders)
@ -126,7 +126,7 @@ open class MCCMS(
} }
} }
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
override fun imageRequest(page: Page) = GET(page.imageUrl!!, pcHeaders) override fun imageRequest(page: Page) = GET(page.imageUrl!!, pcHeaders)

View File

@ -420,7 +420,7 @@ abstract class MMRCMS(
Page(i, response.request.url.toString(), url) Page(i, response.request.url.toString(), url)
} }
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Unused method called!") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
private fun getInitialFilterList() = listOf<Filter<*>>( private fun getInitialFilterList() = listOf<Filter<*>>(
Filter.Header("NOTE: Ignored if using text search!"), Filter.Header("NOTE: Ignored if using text search!"),

View File

@ -107,32 +107,32 @@ open class MonochromeCMS(
json.decodeFromString<T>(body.string()) json.decodeFromString<T>(body.string())
override fun popularMangaRequest(page: Int) = override fun popularMangaRequest(page: Int) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) = override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga) = override fun mangaDetailsRequest(manga: SManga) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun popularMangaParse(response: Response) = override fun popularMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) = override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response) = override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun chapterListParse(response: Response) = override fun chapterListParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun pageListRequest(chapter: SChapter) = override fun pageListRequest(chapter: SChapter) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun pageListParse(response: Response) = override fun pageListParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
} }

View File

@ -262,7 +262,7 @@ abstract class MyMangaCMS(
override fun chapterListSelector(): String = "ul.list-chapters > a" override fun chapterListSelector(): String = "ul.list-chapters > a"
override fun chapterFromElement(element: Element): SChapter = throw Exception("Not used") override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException()
private fun chapterFromElement(element: Element, scanlator: String?): SChapter = private fun chapterFromElement(element: Element, scanlator: String?): SChapter =
SChapter.create().apply { SChapter.create().apply {
@ -307,7 +307,7 @@ abstract class MyMangaCMS(
.filterNot { it.attr("abs:data-src").isNullOrEmpty() } .filterNot { it.attr("abs:data-src").isNullOrEmpty() }
.mapIndexed { index, elem -> Page(index, "", elem.attr("abs:data-src")) } .mapIndexed { index, elem -> Page(index, "", elem.attr("abs:data-src")) }
override fun imageUrlParse(document: Document): String = throw Exception("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
//endregion //endregion
//region Filters //region Filters

View File

@ -227,7 +227,7 @@ abstract class NepNep(
return parseDirectory(1) return parseDirectory(1)
} }
override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used") override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
// Details // Details
@ -357,7 +357,7 @@ abstract class NepNep(
} }
} }
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -95,9 +95,9 @@ open class OtakuSanctuary(
return MangasPage(parseMangaCollection(collection), hasNextPage) return MangasPage(parseMangaCollection(collection), hasNextPage)
} }
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) = throw UnsupportedOperationException("Not used") override fun latestUpdatesParse(response: Response) = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request =
GET( GET(
@ -176,7 +176,7 @@ open class OtakuSanctuary(
} }
} }
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
override fun pageListParse(response: Response): List<Page> { override fun pageListParse(response: Response): List<Page> {
val document = response.asJsoup() val document = response.asJsoup()

View File

@ -130,7 +130,7 @@ abstract class Paprika(
// never called // never called
override fun chapterFromElement(element: Element): SChapter { override fun chapterFromElement(element: Element): SChapter {
throw Exception("unreachable code was reached!") throw UnsupportedOperationException()
} }
open fun chapterFromElement(element: Element, mangaTitle: String): SChapter { open fun chapterFromElement(element: Element, mangaTitle: String): SChapter {
@ -179,7 +179,7 @@ abstract class Paprika(
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -174,15 +174,15 @@ abstract class ReadAllComics(
} }
override fun imageUrlParse(document: Document) = override fun imageUrlParse(document: Document) =
throw UnsupportedOperationException("Not Implemented") throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) = override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not Implemented") throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = override fun latestUpdatesFromElement(element: Element) =
throw UnsupportedOperationException("Not Implemented") throw UnsupportedOperationException()
override fun latestUpdatesSelector() = override fun latestUpdatesSelector() =
throw UnsupportedOperationException("Not Implemented") throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = override fun latestUpdatesNextPageSelector() =
throw UnsupportedOperationException("Not Implemented") throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element) = override fun popularMangaFromElement(element: Element) =
throw UnsupportedOperationException("Not Implemented") throw UnsupportedOperationException()
} }

View File

@ -165,11 +165,11 @@ abstract class ReaderFront(
private inline val JsonElement.content get() = jsonPrimitive.content private inline val JsonElement.content get() = jsonPrimitive.content
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun searchMangaParse(response: Response) = override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
} }

View File

@ -261,7 +261,7 @@ abstract class Senkuro(
chapterListParse(response, manga) chapterListParse(response, manga)
} }
} }
override fun chapterListParse(response: Response) = throw UnsupportedOperationException("chapterListParse(response: Response, manga: SManga)") override fun chapterListParse(response: Response) = throw UnsupportedOperationException()
private fun chapterListParse(response: Response, manga: SManga): List<SChapter> { private fun chapterListParse(response: Response, manga: SManga): List<SChapter> {
val chaptersList = json.decodeFromString<PageWrapperDto<MangaTachiyomiChaptersDto>>(response.body.string()) val chaptersList = json.decodeFromString<PageWrapperDto<MangaTachiyomiChaptersDto>>(response.body.string())
val teamsList = chaptersList.data.mangaTachiyomiChapters.teams val teamsList = chaptersList.data.mangaTachiyomiChapters.teams

View File

@ -215,7 +215,7 @@ abstract class SinMH(
emptyList() // [] emptyList() // []
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used.") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
protected class UriPartFilter(displayName: String, values: Array<String>, private val uriParts: Array<String>) : protected class UriPartFilter(displayName: String, values: Array<String>, private val uriParts: Array<String>) :
Filter.Select<String>(displayName, values) { Filter.Select<String>(displayName, values) {

View File

@ -154,11 +154,11 @@ open class WebtoonsTranslate(
} }
} }
override fun chapterListSelector(): String = throw Exception("Not used") override fun chapterListSelector(): String = throw UnsupportedOperationException()
override fun chapterFromElement(element: Element): SChapter = throw Exception("Not used") override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException()
override fun pageListParse(document: Document): List<Page> = throw Exception("Not used") override fun pageListParse(document: Document): List<Page> = throw UnsupportedOperationException()
override fun chapterListRequest(manga: SManga): Request { override fun chapterListRequest(manga: SManga): Request {
val mangaUrl = manga.url.toHttpUrl() val mangaUrl = manga.url.toHttpUrl()

View File

@ -220,7 +220,7 @@ abstract class WPComics(
.mapIndexed { i, image -> Page(i, "", image) } .mapIndexed { i, image -> Page(i, "", image) }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -193,7 +193,7 @@ abstract class Zbulu(
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -272,7 +272,7 @@ abstract class ZeistManga(
} }
} }
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
protected open val mangaCategory: String = "Series" protected open val mangaCategory: String = "Series"

View File

@ -174,7 +174,7 @@ abstract class ZManga(
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
open val hasProjectPage = false open val hasProjectPage = false

View File

@ -298,10 +298,10 @@ open class BatoTo(
add("prevPos", "null") add("prevPos", "null")
} }
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException()
override fun searchMangaSelector() = throw UnsupportedOperationException("Not used") override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException("Not used") override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not used") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga): Request { override fun mangaDetailsRequest(manga: SManga): Request {
if (manga.url.startsWith("http")) { if (manga.url.startsWith("http")) {
@ -473,7 +473,7 @@ open class BatoTo(
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
private fun String.removeEntities(): String = Parser.unescapeEntities(this, true) private fun String.removeEntities(): String = Parser.unescapeEntities(this, true)

View File

@ -102,7 +102,7 @@ class BuonDua() : ParsedHttpSource() {
return pages return pages
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters // Filters
override fun getFilterList(): FilterList = FilterList( override fun getFilterList(): FilterList = FilterList(

View File

@ -276,7 +276,7 @@ class ComicFury(
override fun latestUpdatesParse(response: Response): MangasPage = searchMangaParse(response) override fun latestUpdatesParse(response: Response): MangasPage = searchMangaParse(response)
override fun imageUrlParse(response: Response): String = override fun imageUrlParse(response: Response): String =
throw UnsupportedOperationException("Not Used") throw UnsupportedOperationException()
private fun String.toDate(): Long { private fun String.toDate(): Long {
val ret = this.replace("st", "") val ret = this.replace("st", "")

View File

@ -452,7 +452,7 @@ abstract class ComickFun(
} }
override fun imageUrlParse(response: Response): String { override fun imageUrlParse(response: Response): String {
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
} }
override fun getFilterList() = getFilters() override fun getFilterList() = getFilters()

View File

@ -188,10 +188,10 @@ open class Comico(
) = json.decodeFromJsonElement<List<T>>(this[key]).map(transform) ) = json.decodeFromJsonElement<List<T>>(this[key]).map(transform)
override fun mangaDetailsParse(response: Response) = override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
companion object { companion object {
private const val ANON_IP = "0.0.0.0" private const val ANON_IP = "0.0.0.0"

View File

@ -138,35 +138,35 @@ abstract class CommitStrip(
// Unsupported // Unsupported
override fun pageListParse(document: Document): List<Page> = throw Exception("Not Used") override fun pageListParse(document: Document): List<Page> = throw UnsupportedOperationException()
override fun imageUrlParse(document: Document) = throw Exception("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
override fun popularMangaSelector() = throw Exception("Not used") override fun popularMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element) = throw Exception("Not used") override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw Exception("Not used") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun searchMangaSelector() = throw Exception("Not used") override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int) = throw Exception("Not used") override fun popularMangaRequest(page: Int) = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw Exception("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector() = throw Exception("Not used") override fun popularMangaNextPageSelector() = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element) = throw Exception("Not used") override fun popularMangaFromElement(element: Element) = throw UnsupportedOperationException()
override fun mangaDetailsParse(document: Document) = throw Exception("Not used") override fun mangaDetailsParse(document: Document) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw Exception("Not used") override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw Exception("Not used") override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) = throw Exception("Not used") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw Exception("Not used") override fun latestUpdatesSelector() = throw UnsupportedOperationException()
companion object { companion object {
private const val LOGO_EN = "https://i.imgur.com/HODJlt9.jpg" private const val LOGO_EN = "https://i.imgur.com/HODJlt9.jpg"

View File

@ -106,7 +106,7 @@ open class Cubari(override val lang: String) : HttpSource() {
} }
override fun mangaDetailsParse(response: Response): SManga { override fun mangaDetailsParse(response: Response): SManga {
throw Exception("Unused") throw UnsupportedOperationException()
} }
private fun mangaDetailsParse(response: Response, manga: SManga): SManga { private fun mangaDetailsParse(response: Response, manga: SManga): SManga {
@ -275,7 +275,7 @@ open class Cubari(override val lang: String) : HttpSource() {
} }
override fun searchMangaParse(response: Response): MangasPage { override fun searchMangaParse(response: Response): MangasPage {
throw Exception("Unused") throw UnsupportedOperationException()
} }
private fun searchMangaParse(response: Response, query: String): MangasPage { private fun searchMangaParse(response: Response, query: String): MangasPage {
@ -409,7 +409,7 @@ open class Cubari(override val lang: String) : HttpSource() {
// ----------------- Things we aren't supporting ----------------- // ----------------- Things we aren't supporting -----------------
override fun imageUrlParse(response: Response): String { override fun imageUrlParse(response: Response): String {
throw Exception("imageUrlParse not supported.") throw UnsupportedOperationException()
} }
companion object { companion object {

View File

@ -70,7 +70,7 @@ abstract class DbMultiverse(override val lang: String, private val internalLang:
}.let { Observable.just(it) } }.let { Observable.just(it) }
} }
override fun mangaDetailsParse(document: Document): SManga = throw Exception("Not Used") override fun mangaDetailsParse(document: Document): SManga = throw UnsupportedOperationException()
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()

View File

@ -327,9 +327,9 @@ abstract class EHentai(
} }
} }
override fun chapterListParse(response: Response) = throw UnsupportedOperationException("Unused method was called somehow!") override fun chapterListParse(response: Response) = throw UnsupportedOperationException()
override fun pageListParse(response: Response) = throw UnsupportedOperationException("Unused method was called somehow!") override fun pageListParse(response: Response) = throw UnsupportedOperationException()
override fun imageUrlParse(response: Response): String = response.asJsoup().select("#img").attr("abs:src") override fun imageUrlParse(response: Response): String = response.asJsoup().select("#img").attr("abs:src")

View File

@ -112,7 +112,7 @@ class EveriaClub() : ParsedHttpSource() {
} }
override fun imageUrlParse(document: Document): String = override fun imageUrlParse(document: Document): String =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
// Filters // Filters
override fun getFilterList(): FilterList = FilterList( override fun getFilterList(): FilterList = FilterList(

View File

@ -144,7 +144,7 @@ class FreleinBooks() : ParsedHttpSource() {
} }
override fun imageUrlParse(document: Document): String = override fun imageUrlParse(document: Document): String =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
// Filters // Filters

View File

@ -118,13 +118,13 @@ class Hennojin(override val lang: String, suffix: String) : ParsedHttpSource() {
get() = "/home/manga-reader/?manga=$title&view=multi" get() = "/home/manga-reader/?manga=$title&view=multi"
override fun chapterListSelector() = override fun chapterListSelector() =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun chapterFromElement(element: Element) = override fun chapterFromElement(element: Element) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun imageUrlParse(document: Document) = override fun imageUrlParse(document: Document) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
companion object { companion object {
// Let's hope this doesn't change // Let's hope this doesn't change

View File

@ -142,9 +142,9 @@ class Holonometria(
} }
} }
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException("Not used") override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not used") override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used") override fun latestUpdatesSelector() = throw UnsupportedOperationException()
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
} }

View File

@ -211,9 +211,9 @@ class IMHentai(override val lang: String, private val imhLang: String) : ParsedH
) )
} }
override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used") override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException()
override fun chapterListSelector(): String = throw UnsupportedOperationException("Not used") override fun chapterListSelector(): String = throw UnsupportedOperationException()
// Pages // Pages
@ -254,7 +254,7 @@ class IMHentai(override val lang: String, private val imhLang: String) : ParsedH
return pages return pages
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -200,19 +200,19 @@ class Izneo(override val lang: String) : ConfigurableSource, HttpSource() {
}.jsonObject }.jsonObject
override fun mangaDetailsRequest(manga: SManga) = override fun mangaDetailsRequest(manga: SManga) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun chapterListRequest(manga: SManga) = override fun chapterListRequest(manga: SManga) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response) = override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun chapterListParse(response: Response) = override fun chapterListParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
companion object { companion object {
private const val ORIGIN = "https://www.izneo.com" private const val ORIGIN = "https://www.izneo.com"

View File

@ -130,7 +130,7 @@ class Junmeitu : ParsedHttpSource() {
return img.attr("src") return img.attr("src")
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters // Filters
override fun getFilterList(): FilterList = FilterList( override fun getFilterList(): FilterList = FilterList(

View File

@ -91,28 +91,28 @@ class LOLUniverse(
"$UNIVERSE_URL/$siteLang/comic/${chapter.url}" "$UNIVERSE_URL/$siteLang/comic/${chapter.url}"
override fun latestUpdatesRequest(page: Int) = override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga) = override fun mangaDetailsRequest(manga: SManga) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) = override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun searchMangaParse(response: Response) = override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response) = override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun pageListParse(response: Response) = override fun pageListParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
private inline fun <reified T> Response.decode() = private inline fun <reified T> Response.decode() =
json.decodeFromString<T>(body.string()) json.decodeFromString<T>(body.string())

View File

@ -86,8 +86,8 @@ class LittleGarden : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga = SManga.create() override fun mangaDetailsParse(document: Document): SManga = SManga.create()
// Chapter list // Chapter list
override fun chapterListSelector() = throw Exception("Not used") override fun chapterListSelector() = throw UnsupportedOperationException()
override fun chapterFromElement(element: Element): SChapter = throw Exception("Not used") override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException()
override fun chapterListParse(response: Response): List<SChapter> { override fun chapterListParse(response: Response): List<SChapter> {
val document = response.asJsoup() val document = response.asJsoup()
val slug = slugRegex.find(document.toString())?.groupValues?.get(1) val slug = slugRegex.find(document.toString())?.groupValues?.get(1)
@ -189,5 +189,5 @@ class LittleGarden : ParsedHttpSource() {
} }
return pages return pages
} }
override fun imageUrlParse(document: Document): String = throw Exception("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
} }

View File

@ -314,7 +314,7 @@ abstract class Luscious(
return chapters.reversed() return chapters.reversed()
} }
override fun chapterListParse(response: Response): List<SChapter> = throw UnsupportedOperationException("Not used") override fun chapterListParse(response: Response): List<SChapter> = throw UnsupportedOperationException()
// Pages // Pages
@ -394,9 +394,9 @@ abstract class Luscious(
} }
} }
override fun pageListParse(response: Response): List<Page> = throw UnsupportedOperationException("Not used") override fun pageListParse(response: Response): List<Page> = throw UnsupportedOperationException()
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
override fun fetchImageUrl(page: Page): Observable<String> { override fun fetchImageUrl(page: Page): Observable<String> {
if (page.imageUrl != null) { if (page.imageUrl != null) {
@ -461,7 +461,7 @@ abstract class Luscious(
return manga return manga
} }
} }
override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not used") override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException()
// Popular // Popular

View File

@ -222,7 +222,7 @@ class MangaPark(
json.encodeToString(this).toRequestBody(JSON_MEDIA_TYPE) json.encodeToString(this).toRequestBody(JSON_MEDIA_TYPE)
override fun imageUrlParse(response: Response): String { override fun imageUrlParse(response: Response): String {
throw UnsupportedOperationException("Not Used") throw UnsupportedOperationException()
} }
companion object { companion object {

View File

@ -56,9 +56,9 @@ class MangaUp(override val lang: String) : HttpSource() {
return MangasPage(titles, hasNextPage = false) return MangasPage(titles, hasNextPage = false)
} }
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) = throw UnsupportedOperationException("Not used") override fun latestUpdatesParse(response: Response) = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
if (query.startsWith(PREFIX_ID_SEARCH) && query.matches(ID_SEARCH_PATTERN)) { if (query.startsWith(PREFIX_ID_SEARCH) && query.matches(ID_SEARCH_PATTERN)) {

View File

@ -66,10 +66,10 @@ class Mango : ConfigurableSource, UnmeteredSource, HttpSource() {
} }
override fun latestUpdatesRequest(page: Int): Request = override fun latestUpdatesRequest(page: Int): Request =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage = override fun latestUpdatesParse(response: Response): MangasPage =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
// Default is to just return the whole library for searching // Default is to just return the whole library for searching
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = popularMangaRequest(1) override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = popularMangaRequest(1)
@ -114,7 +114,7 @@ class Mango : ConfigurableSource, UnmeteredSource, HttpSource() {
// Stub // Stub
override fun searchMangaParse(response: Response): MangasPage = override fun searchMangaParse(response: Response): MangasPage =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga): Request = override fun mangaDetailsRequest(manga: SManga): Request =
GET(baseUrl + "/api" + manga.url, headers) GET(baseUrl + "/api" + manga.url, headers)
@ -173,7 +173,7 @@ class Mango : ConfigurableSource, UnmeteredSource, HttpSource() {
// Stub // Stub
override fun pageListRequest(chapter: SChapter): Request = override fun pageListRequest(chapter: SChapter): Request =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
// Overridden fetch so that we use our overloaded method instead // Overridden fetch so that we use our overloaded method instead
override fun fetchPageList(chapter: SChapter): Observable<List<Page>> { override fun fetchPageList(chapter: SChapter): Observable<List<Page>> {
@ -194,7 +194,7 @@ class Mango : ConfigurableSource, UnmeteredSource, HttpSource() {
// Stub // Stub
override fun pageListParse(response: Response): List<Page> = override fun pageListParse(response: Response): List<Page> =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response): String = "" override fun imageUrlParse(response: Response): String = ""
override fun getFilterList(): FilterList = FilterList() override fun getFilterList(): FilterList = FilterList()

View File

@ -49,9 +49,9 @@ class MeituaTop : HttpSource() {
return MangasPage(mangas, hasNextPage) return MangasPage(mangas, hasNextPage)
} }
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used.") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun latestUpdatesParse(response: Response) = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
if (query.isNotEmpty()) { if (query.isNotEmpty()) {
@ -70,7 +70,7 @@ class MeituaTop : HttpSource() {
override fun fetchMangaDetails(manga: SManga): Observable<SManga> = Observable.just(manga) override fun fetchMangaDetails(manga: SManga): Observable<SManga> = Observable.just(manga)
override fun mangaDetailsParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun mangaDetailsParse(response: Response) = throw UnsupportedOperationException()
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> { override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> {
val chapter = SChapter.create().apply { val chapter = SChapter.create().apply {
@ -82,7 +82,7 @@ class MeituaTop : HttpSource() {
return Observable.just(listOf(chapter)) return Observable.just(listOf(chapter))
} }
override fun chapterListParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun chapterListParse(response: Response) = throw UnsupportedOperationException()
override fun pageListParse(response: Response): List<Page> { override fun pageListParse(response: Response): List<Page> {
val document = response.asJsoup() val document = response.asJsoup()
@ -91,7 +91,7 @@ class MeituaTop : HttpSource() {
return images.mapIndexed { index, imageUrl -> Page(index, imageUrl = imageUrl) } return images.mapIndexed { index, imageUrl -> Page(index, imageUrl = imageUrl) }
} }
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
override fun getFilterList() = FilterList( override fun getFilterList() = FilterList(
Filter.Header("Category (ignored for text search)"), Filter.Header("Category (ignored for text search)"),

View File

@ -44,9 +44,9 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
cacheAssistant() cacheAssistant()
return searchMangaParse(response) return searchMangaParse(response)
} }
override fun popularMangaNextPageSelector() = throw Exception("Not used") override fun popularMangaNextPageSelector() = throw UnsupportedOperationException()
override fun popularMangaSelector() = throw Exception("Not used") override fun popularMangaSelector() = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element) = throw Exception("Not used") override fun popularMangaFromElement(element: Element) = throw UnsupportedOperationException()
// Latest // Latest
@SuppressLint("DefaultLocale") @SuppressLint("DefaultLocale")
@ -83,7 +83,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
return GET(uri.toString(), headers) return GET(uri.toString(), headers)
} }
override fun searchMangaNextPageSelector(): String? = throw Exception("Not used") override fun searchMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun searchMangaSelector() = "div.results-by-facets div[id*=res]" override fun searchMangaSelector() = "div.results-by-facets div[id*=res]"
private var mangaParsedSoFar = 0 private var mangaParsedSoFar = 0
override fun searchMangaParse(response: Response): MangasPage { override fun searchMangaParse(response: Response): MangasPage {
@ -171,7 +171,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
} }
} }
override fun mangaDetailsParse(document: Document) = throw Exception("Not used") override fun mangaDetailsParse(document: Document) = throw UnsupportedOperationException()
// Start Chapter Get // Start Chapter Get
override fun chapterListSelector() = ".entry-pagination a" override fun chapterListSelector() = ".entry-pagination a"
@ -214,7 +214,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
return chapter return chapter
} }
override fun chapterFromElement(element: Element) = throw Exception("Not used") override fun chapterFromElement(element: Element) = throw UnsupportedOperationException()
// Pages // Pages
@ -225,7 +225,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
.mapIndexed { i, url -> Page(i, "", url) } .mapIndexed { i, url -> Page(i, "", url) }
} }
override fun imageUrlParse(document: Document) = throw Exception("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
// Filter Parsing, grabs pages as document and filters out Genres, Popular Tags, and Categories, Parings, and Scan Groups // Filter Parsing, grabs pages as document and filters out Genres, Popular Tags, and Categories, Parings, and Scan Groups
private var filtersCached = false private var filtersCached = false

View File

@ -208,34 +208,34 @@ class Netcomics(
} }
override fun latestUpdatesRequest(page: Int) = override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int) = override fun popularMangaRequest(page: Int) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga) = override fun mangaDetailsRequest(manga: SManga) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun chapterListRequest(manga: SManga) = override fun chapterListRequest(manga: SManga) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun pageListRequest(chapter: SChapter) = override fun pageListRequest(chapter: SChapter) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) = override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun popularMangaParse(response: Response) = override fun popularMangaParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response) = override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
private inline val SManga.slug: String private inline val SManga.slug: String
get() = url.substringBefore('|') get() = url.substringBefore('|')

View File

@ -247,9 +247,9 @@ open class NHentai(
) )
} }
override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not used") override fun chapterFromElement(element: Element) = throw UnsupportedOperationException()
override fun chapterListSelector() = throw UnsupportedOperationException("Not used") override fun chapterListSelector() = throw UnsupportedOperationException()
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
val script = document.select("script:containsData(media_server)").first()!!.data() val script = document.select("script:containsData(media_server)").first()!!.data()
@ -294,7 +294,7 @@ open class NHentai(
class OffsetPageFilter : Filter.Text("Offset results by # pages") class OffsetPageFilter : Filter.Text("Offset results by # pages")
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
private class FavoriteFilter : Filter.CheckBox("Show favorites only", false) private class FavoriteFilter : Filter.CheckBox("Show favorites only", false)

View File

@ -312,8 +312,8 @@ open class NineNineNineHentai(
private val SharedPreferences.shortTitle get() = getBoolean(PREF_SHORT_TITLE, false) private val SharedPreferences.shortTitle get() = getBoolean(PREF_SHORT_TITLE, false)
override fun chapterListParse(response: Response) = throw UnsupportedOperationException("Not Used") override fun chapterListParse(response: Response) = throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not Used") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
companion object { companion object {
private const val size = 20 private const val size = 20

View File

@ -115,13 +115,13 @@ abstract class NoiseManga(override val lang: String) : ParsedHttpSource() {
override fun imageUrlParse(document: Document) = "" override fun imageUrlParse(document: Document) = ""
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used") override fun latestUpdatesSelector() = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException("Not used") override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not used") override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
companion object { companion object {
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36" private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"

View File

@ -83,7 +83,7 @@ class Photos18 : HttpSource(), ConfigurableSource {
override fun fetchMangaDetails(manga: SManga): Observable<SManga> = Observable.just(manga) override fun fetchMangaDetails(manga: SManga): Observable<SManga> = Observable.just(manga)
override fun mangaDetailsParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun mangaDetailsParse(response: Response) = throw UnsupportedOperationException()
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> { override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> {
val chapter = SChapter.create().apply { val chapter = SChapter.create().apply {
@ -94,7 +94,7 @@ class Photos18 : HttpSource(), ConfigurableSource {
return Observable.just(listOf(chapter)) return Observable.just(listOf(chapter))
} }
override fun chapterListParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun chapterListParse(response: Response) = throw UnsupportedOperationException()
override fun pageListParse(response: Response): List<Page> { override fun pageListParse(response: Response): List<Page> {
val document = response.asJsoup() val document = response.asJsoup()
@ -104,7 +104,7 @@ class Photos18 : HttpSource(), ConfigurableSource {
} }
} }
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
override fun getFilterList() = FilterList( override fun getFilterList() = FilterList(
SortFilter(), SortFilter(),

View File

@ -370,32 +370,32 @@ class Pixiv(override val lang: String) : HttpSource() {
} }
override fun chapterListParse(response: Response): List<SChapter> = override fun chapterListParse(response: Response): List<SChapter> =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response): String = override fun imageUrlParse(response: Response): String =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage = override fun latestUpdatesParse(response: Response): MangasPage =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int): Request = override fun latestUpdatesRequest(page: Int): Request =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response): SManga = override fun mangaDetailsParse(response: Response): SManga =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun pageListParse(response: Response): List<Page> = override fun pageListParse(response: Response): List<Page> =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun popularMangaParse(response: Response): MangasPage = override fun popularMangaParse(response: Response): MangasPage =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int): Request = override fun popularMangaRequest(page: Int): Request =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun searchMangaParse(response: Response): MangasPage = override fun searchMangaParse(response: Response): MangasPage =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
} }

View File

@ -106,33 +106,33 @@ abstract class SandraAndWoo(
override fun mangaDetailsParse(document: Document) = manga override fun mangaDetailsParse(document: Document) = manga
// <editor-fold desc="not used"> // <editor-fold desc="not used">
override fun chapterFromElement(element: Element) = throw Exception("Not used") override fun chapterFromElement(element: Element) = throw UnsupportedOperationException()
override fun imageUrlParse(document: Document) = throw Exception("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw Exception("Not used") override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw Exception("Not used") override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) = throw Exception("Not used") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw Exception("Not used") override fun latestUpdatesSelector() = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element) = throw Exception("Not used") override fun popularMangaFromElement(element: Element) = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector() = throw Exception("Not used") override fun popularMangaNextPageSelector() = throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int) = throw Exception("Not used") override fun popularMangaRequest(page: Int) = throw UnsupportedOperationException()
override fun popularMangaSelector() = throw Exception("Not used") override fun popularMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element) = throw Exception("Not used") override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw Exception("Not used") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw Exception("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException()
override fun searchMangaSelector() = throw Exception("Not used") override fun searchMangaSelector() = throw UnsupportedOperationException()
// </editor-fold> // </editor-fold>
private fun String.timestamp() = DATE_FORMAT.parse(this)?.time ?: 0L private fun String.timestamp() = DATE_FORMAT.parse(this)?.time ?: 0L

View File

@ -375,8 +375,8 @@ class SimplyCosplay : HttpSource(), ConfigurableSource {
} }
override fun chapterListParse(response: Response) = override fun chapterListParse(response: Response) =
throw UnsupportedOperationException("Not implemented") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not implemented") throw UnsupportedOperationException()
} }

View File

@ -219,7 +219,7 @@ open class SimplyHentai(override val lang: String) : ConfigurableSource, HttpSou
json.decodeFromString<T>(body.string()) json.decodeFromString<T>(body.string())
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
companion object { companion object {
private val dateFormat = private val dateFormat =

View File

@ -47,9 +47,9 @@ open class TaddyInk(
}.also(screen::addPreference) }.also(screen::addPreference)
} }
override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException("Not used!") override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used!") override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int): Request { override fun popularMangaRequest(page: Int): Request {
val url = "$baseUrl/feeds/directory/list".toHttpUrl().newBuilder() val url = "$baseUrl/feeds/directory/list".toHttpUrl().newBuilder()

View File

@ -199,10 +199,10 @@ class Tappytoon(override val lang: String) : HttpSource() {
get() = url.substringAfter('|') get() = url.substringAfter('|')
override fun mangaDetailsParse(response: Response) = override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
companion object { companion object {
private const val IMG_CONTENT_TYPE = "image/jpeg" private const val IMG_CONTENT_TYPE = "image/jpeg"

View File

@ -66,7 +66,7 @@ class TheLibraryOfOhara(override val lang: String, private val siteLang: String)
override fun latestUpdatesRequest(page: Int) = popularMangaRequest(page) override fun latestUpdatesRequest(page: Int) = popularMangaRequest(page)
override fun latestUpdatesFromElement(element: Element): SManga = throw Exception("This method should not be called!") override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector(): String? = null override fun latestUpdatesNextPageSelector(): String? = null
@ -86,11 +86,11 @@ class TheLibraryOfOhara(override val lang: String, private val siteLang: String)
return MangasPage(popularMangaParse(response).mangas.filter { it.title.contains(query, ignoreCase = true) }, false) return MangasPage(popularMangaParse(response).mangas.filter { it.title.contains(query, ignoreCase = true) }, false)
} }
override fun searchMangaSelector() = throw UnsupportedOperationException("Not used") override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not used") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
// Details // Details
@ -210,5 +210,5 @@ class TheLibraryOfOhara(override val lang: String, private val siteLang: String)
return pages return pages
} }
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
} }

View File

@ -145,7 +145,7 @@ abstract class ToomicsGlobal(
.mapIndexed { i, el -> Page(i, url, el.attr("data-src")) } .mapIndexed { i, el -> Page(i, url, el.attr("data-src")) }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
override fun imageRequest(page: Page): Request { override fun imageRequest(page: Page): Request {
val newHeaders = headers.newBuilder() val newHeaders = headers.newBuilder()

View File

@ -76,33 +76,33 @@ CCC es el nombre de la segunda ciudad mas grande que hay, no son siglas ni la ab
} }
// unused // unused
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = throw Exception("Not used") override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = throw UnsupportedOperationException()
override fun imageUrlParse(document: Document) = throw Exception("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
override fun popularMangaSelector(): String = throw Exception("Not used") override fun popularMangaSelector(): String = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element): SManga = throw Exception("Not used") override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector(): String? = throw Exception("Not used") override fun searchMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun searchMangaSelector(): String = throw Exception("Not used") override fun searchMangaSelector(): String = throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used") override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector(): String? = throw Exception("Not used") override fun popularMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element): SManga = throw Exception("Not used") override fun popularMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun mangaDetailsParse(document: Document): SManga = throw Exception("Not used") override fun mangaDetailsParse(document: Document): SManga = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector(): String? = throw Exception("Not used") override fun latestUpdatesNextPageSelector(): String? = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element): SManga = throw Exception("Not used") override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used") override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun latestUpdatesSelector(): String = throw Exception("Not used") override fun latestUpdatesSelector(): String = throw UnsupportedOperationException()
} }

View File

@ -27,10 +27,10 @@ class Xinmeitulu : ParsedHttpSource() {
// Latest // Latest
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not Used.") override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not Used.") override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not Used.") override fun latestUpdatesSelector() = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException("Not Used.") override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
// Popular // Popular
@ -86,7 +86,7 @@ class Xinmeitulu : ParsedHttpSource() {
Page(index, imageUrl = element.attr("abs:data-original")) Page(index, imageUrl = element.attr("abs:data-original"))
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
companion object { companion object {
private fun contentTypeIntercept(chain: Interceptor.Chain): Response { private fun contentTypeIntercept(chain: Interceptor.Chain): Response {

View File

@ -112,28 +112,28 @@ open class Xkcd(
} }
final override fun imageUrlParse(response: Response) = final override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
final override fun latestUpdatesParse(response: Response) = final override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
final override fun latestUpdatesRequest(page: Int) = final override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
final override fun mangaDetailsParse(response: Response) = final override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
final override fun popularMangaParse(response: Response) = final override fun popularMangaParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
final override fun popularMangaRequest(page: Int) = final override fun popularMangaRequest(page: Int) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
final override fun searchMangaParse(response: Response) = final override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
final override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = final override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
companion object { companion object {
private const val THUMBNAIL_URL = private const val THUMBNAIL_URL =

View File

@ -31,5 +31,5 @@ class XkcdES : Xkcd("https://es.xkcd.com", "es") {
} }
override fun String.numbered(number: Any) = override fun String.numbered(number: Any) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
} }

View File

@ -42,5 +42,5 @@ class XkcdFR : Xkcd("https://xkcd.lapin.org", "fr") {
} }
override val interactiveText: String override val interactiveText: String
get() = throw UnsupportedOperationException("Not used") get() = throw UnsupportedOperationException()
} }

View File

@ -44,5 +44,5 @@ class XkcdRU : Xkcd("https://xkcd.ru", "ru") {
} }
override val interactiveText: String override val interactiveText: String
get() = throw UnsupportedOperationException("Not used") get() = throw UnsupportedOperationException()
} }

View File

@ -60,5 +60,5 @@ class XkcdZH : Xkcd("https://xkcd.tw", "zh", "yyyy-MM-dd HH:mm:ss") {
} }
override val chapterListSelector: String override val chapterListSelector: String
get() = throw UnsupportedOperationException("Not used") get() = throw UnsupportedOperationException()
} }

View File

@ -103,7 +103,7 @@ class YaoiMangaOnline : ParsedHttpSource() {
} }
override fun imageUrlParse(document: Document) = override fun imageUrlParse(document: Document) =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun getFilterList() = override fun getFilterList() =
FilterList(CategoryFilter(), TagFilter()) FilterList(CategoryFilter(), TagFilter())

View File

@ -108,7 +108,7 @@ class Gmanga : ConfigurableSource, HttpSource() {
} }
override fun imageUrlParse(response: Response): String = override fun imageUrlParse(response: Response): String =
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage { override fun latestUpdatesParse(response: Response): MangasPage {
val isLatest = when (preferences.getString(PREF_LASTETS_LISTING)) { val isLatest = when (preferences.getString(PREF_LASTETS_LISTING)) {

View File

@ -136,7 +136,7 @@ class MangaAe : ParsedHttpSource(), ConfigurableSource {
} }
} }
override fun imageUrlParse(document: Document): String = throw Exception("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// ============================== Filters =============================== // ============================== Filters ===============================
private open class UriPartFilter(displayName: String, val vals: Array<Pair<String, String>>) : private open class UriPartFilter(displayName: String, val vals: Array<Pair<String, String>>) :

View File

@ -137,7 +137,7 @@ class REManga : ParsedHttpSource() {
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -67,13 +67,13 @@ class Shqqaa : ParsedHttpSource() {
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = fetchPopularManga(1) override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = fetchPopularManga(1)
.map { mp -> MangasPage(mp.mangas.filter { it.title.contains(query, ignoreCase = true) }, false) } .map { mp -> MangasPage(mp.mangas.filter { it.title.contains(query, ignoreCase = true) }, false) }
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException()
override fun searchMangaSelector(): String = throw Exception("Not Used") override fun searchMangaSelector(): String = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element): SManga = throw Exception("Not Used") override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw Exception("Not Used") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
// Manga summary page // Manga summary page
override fun mangaDetailsParse(document: Document): SManga { override fun mangaDetailsParse(document: Document): SManga {
@ -118,7 +118,7 @@ class Shqqaa : ParsedHttpSource() {
} }
return pages return pages
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
override fun getFilterList() = FilterList() override fun getFilterList() = FilterList()
} }

View File

@ -195,5 +195,5 @@ class TeamX : ParsedHttpSource() {
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
} }

View File

@ -82,11 +82,11 @@ class MangaTube : ParsedHttpSource() {
return MangasPage(mangas, hasNextPage) return MangasPage(mangas, hasNextPage)
} }
override fun popularMangaSelector() = throw UnsupportedOperationException("Not used") override fun popularMangaSelector() = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") override fun popularMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector() = throw UnsupportedOperationException("Not used") override fun popularMangaNextPageSelector() = throw UnsupportedOperationException()
// Latest // Latest
@ -119,11 +119,11 @@ class MangaTube : ParsedHttpSource() {
return parseMangaFromJson(response, false) return parseMangaFromJson(response, false)
} }
override fun searchMangaSelector() = throw UnsupportedOperationException("Not used") override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not used") override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
// Details // Details
@ -181,5 +181,5 @@ class MangaTube : ParsedHttpSource() {
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
} }

View File

@ -120,7 +120,7 @@ class MangaRok : ParsedHttpSource() {
} }
override fun imageUrlParse(document: Document): String = override fun imageUrlParse(document: Document): String =
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
// Filters // Filters
override fun getFilterList(): FilterList = FilterList() override fun getFilterList(): FilterList = FilterList()

View File

@ -272,7 +272,7 @@ class AllAnime : ConfigurableSource, HttpSource() {
} }
override fun imageUrlParse(response: Response): String { override fun imageUrlParse(response: Response): String {
throw UnsupportedOperationException("Not used") throw UnsupportedOperationException()
} }
override fun setupPreferenceScreen(screen: PreferenceScreen) { override fun setupPreferenceScreen(screen: PreferenceScreen) {

View File

@ -237,7 +237,7 @@ class Anchira : HttpSource(), ConfigurableSource {
return GET(page.imageUrl!!.replace("/b/", "/${preferences.imageQuality}/"), headers) return GET(page.imageUrl!!.replace("/b/", "/${preferences.imageQuality}/"), headers)
} }
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used") override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
// Settings // Settings

View File

@ -154,7 +154,7 @@ class APairOf2 : ParsedHttpSource() {
} }
override fun imageUrlParse(document: Document): String { override fun imageUrlParse(document: Document): String {
throw UnsupportedOperationException("not used") throw UnsupportedOperationException()
} }
companion object { companion object {

View File

@ -25,9 +25,9 @@ class Aurora : HttpSource() {
private val auroraGenre = "fantasy" private val auroraGenre = "fantasy"
private val dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.US) private val dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.US)
override fun chapterListRequest(manga: SManga): Request = throw Exception("Not used") override fun chapterListRequest(manga: SManga): Request = throw UnsupportedOperationException()
override fun chapterListParse(response: Response): List<SChapter> = throw Exception("Not used") override fun chapterListParse(response: Response): List<SChapter> = throw UnsupportedOperationException()
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> { override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> {
return Observable.just(fetchChapterListTR(baseUrl + manga.url, mutableListOf()).reversed()) return Observable.just(fetchChapterListTR(baseUrl + manga.url, mutableListOf()).reversed())
@ -71,11 +71,11 @@ class Aurora : HttpSource() {
return Observable.just(page.imageUrl) return Observable.just(page.imageUrl)
} }
override fun imageUrlParse(response: Response): String = throw Exception("Not used") override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage = throw Exception("Not used") override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used") override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun fetchMangaDetails(manga: SManga): Observable<SManga> { override fun fetchMangaDetails(manga: SManga): Observable<SManga> {
val chapterNr = manga.title.substringAfter(' ').toFloatOrNull() ?: 0f val chapterNr = manga.title.substringAfter(' ').toFloatOrNull() ?: 0f
@ -113,7 +113,7 @@ class Aurora : HttpSource() {
Find Reds general ramblings on Twitter, alongside her cohost Blue, at OSPYouTube. Find Reds general ramblings on Twitter, alongside her cohost Blue, at OSPYouTube.
""".trimIndent() """.trimIndent()
override fun mangaDetailsParse(response: Response): SManga = throw Exception("Not used") override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException()
override fun fetchPageList(chapter: SChapter): Observable<List<Page>> { override fun fetchPageList(chapter: SChapter): Observable<List<Page>> {
val singlePageChapterDoc = client.newCall( val singlePageChapterDoc = client.newCall(
@ -127,9 +127,9 @@ class Aurora : HttpSource() {
return Observable.just(listOf(singlePageChapter)) return Observable.just(listOf(singlePageChapter))
} }
override fun pageListRequest(chapter: SChapter): Request = throw Exception("Not used") override fun pageListRequest(chapter: SChapter): Request = throw UnsupportedOperationException()
override fun pageListParse(response: Response): List<Page> = throw Exception("Not used") override fun pageListParse(response: Response): List<Page> = throw UnsupportedOperationException()
/** /**
* Because the comic is updated 1 page at a time the chapters are turned into different mangas * Because the comic is updated 1 page at a time the chapters are turned into different mangas
@ -185,13 +185,13 @@ class Aurora : HttpSource() {
return Observable.just(generateAuroraMangasPage()) return Observable.just(generateAuroraMangasPage())
} }
override fun popularMangaParse(response: Response): MangasPage = throw Exception("Not used") override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used") override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = throw Exception("Not used") override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = throw UnsupportedOperationException()
override fun searchMangaParse(response: Response): MangasPage = throw Exception("Not used") override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException()
} }

View File

@ -263,16 +263,16 @@ class Buttsmithy : HttpSource() {
return MangasPage(fetchAllComics(), false) return MangasPage(fetchAllComics(), false)
} }
override fun chapterListParse(response: Response): List<SChapter> = throw Exception("Not used") override fun chapterListParse(response: Response): List<SChapter> = throw UnsupportedOperationException()
override fun imageUrlParse(response: Response): String { override fun imageUrlParse(response: Response): String {
val pageDoc = response.asJsoup() val pageDoc = response.asJsoup()
return pageDoc.select("#comic").select("img[src]").attr("href") return pageDoc.select("#comic").select("img[src]").attr("href")
} }
override fun latestUpdatesParse(response: Response): MangasPage = throw Exception("Not used") override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used") override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun fetchMangaDetails(manga: SManga): Observable<SManga> { override fun fetchMangaDetails(manga: SManga): Observable<SManga> {
return Observable.just( return Observable.just(
@ -298,7 +298,7 @@ class Buttsmithy : HttpSource() {
override fun mangaDetailsRequest(manga: SManga): Request = GET(manga.url, headers) override fun mangaDetailsRequest(manga: SManga): Request = GET(manga.url, headers)
override fun mangaDetailsParse(response: Response): SManga = throw Exception("Not used") override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException()
override fun fetchPageList(chapter: SChapter): Observable<List<Page>> { override fun fetchPageList(chapter: SChapter): Observable<List<Page>> {
val comicPageDoc = client.newCall(GET(chapter.url, headers)).execute().asJsoup() val comicPageDoc = client.newCall(GET(chapter.url, headers)).execute().asJsoup()
@ -308,18 +308,18 @@ class Buttsmithy : HttpSource() {
return Observable.just(listOf(comicPage)) return Observable.just(listOf(comicPage))
} }
override fun pageListParse(response: Response): List<Page> = throw Exception("Not used") override fun pageListParse(response: Response): List<Page> = throw UnsupportedOperationException()
override fun fetchPopularManga(page: Int): Observable<MangasPage> { override fun fetchPopularManga(page: Int): Observable<MangasPage> {
return Observable.just(generateMangasPage()) return Observable.just(generateMangasPage())
} }
override fun popularMangaParse(response: Response): MangasPage = throw Exception("Not used") override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used") override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException()
override fun searchMangaParse(response: Response): MangasPage = throw Exception("Not used") override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request =
throw Exception("Not used") throw UnsupportedOperationException()
} }

View File

@ -99,29 +99,29 @@ class CloneManga : ParsedHttpSource() {
return listOf(Page(1, "", imgAbsoluteUrl)) return listOf(Page(1, "", imgAbsoluteUrl))
} }
override fun imageUrlParse(document: Document): String { throw Exception("Not used") } override fun imageUrlParse(document: Document): String { throw UnsupportedOperationException() }
override fun pageListParse(document: Document): List<Page> { throw Exception("Not used") } override fun pageListParse(document: Document): List<Page> { throw Exception("Not used") }
override fun chapterListSelector(): String { throw Exception("Not used") } override fun chapterListSelector(): String { throw Exception("Not used") }
override fun chapterFromElement(element: Element): SChapter { throw Exception("Not used") } override fun chapterFromElement(element: Element): SChapter { throw UnsupportedOperationException() }
override fun latestUpdatesFromElement(element: Element): SManga { throw Exception("Not used") } override fun latestUpdatesFromElement(element: Element): SManga { throw UnsupportedOperationException() }
override fun latestUpdatesNextPageSelector(): String? { throw Exception("Not used") } override fun latestUpdatesNextPageSelector(): String? { throw Exception("Not used") }
override fun latestUpdatesRequest(page: Int): Request { throw Exception("Not used") } override fun latestUpdatesRequest(page: Int): Request { throw UnsupportedOperationException() }
override fun latestUpdatesSelector(): String { throw Exception("Not used") } override fun latestUpdatesSelector(): String { throw Exception("Not used") }
override fun popularMangaNextPageSelector(): String? { throw Exception("Not used") } override fun popularMangaNextPageSelector(): String? { throw Exception("Not used") }
override fun searchMangaFromElement(element: Element): SManga { throw Exception("Not used") } override fun searchMangaFromElement(element: Element): SManga { throw UnsupportedOperationException() }
override fun searchMangaNextPageSelector(): String? { throw Exception("Not used") } override fun searchMangaNextPageSelector(): String? { throw Exception("Not used") }
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { throw Exception("Not used") } override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { throw UnsupportedOperationException() }
override fun searchMangaSelector(): String { throw Exception("Not used") } override fun searchMangaSelector(): String { throw Exception("Not used") }
} }

View File

@ -166,7 +166,7 @@ class CloudRecess : ParsedHttpSource() {
} }
override fun imageUrlParse(document: Document): String { override fun imageUrlParse(document: Document): String {
throw UnsupportedOperationException("Not used.") throw UnsupportedOperationException()
} }
companion object { companion object {

View File

@ -99,13 +99,13 @@ class Collectedcurios : ParsedHttpSource() {
return chapterList return chapterList
} }
override fun chapterListSelector() = throw Exception("Not used") override fun chapterListSelector() = throw UnsupportedOperationException()
override fun chapterFromElement(element: Element) = SChapter.create().apply { override fun chapterFromElement(element: Element) = SChapter.create().apply {
name = element.selectFirst(".w3-round")?.attr("value") ?: "Chapter" name = element.selectFirst(".w3-round")?.attr("value") ?: "Chapter"
} }
override fun pageListParse(document: Document): List<Page> = throw Exception("Not used") override fun pageListParse(document: Document): List<Page> = throw UnsupportedOperationException()
override fun fetchPageList(chapter: SChapter) = Observable.just(listOf(Page(0, chapter.url)))!! override fun fetchPageList(chapter: SChapter) = Observable.just(listOf(Page(0, chapter.url)))!!
@ -122,31 +122,31 @@ class Collectedcurios : ParsedHttpSource() {
} }
} }
override fun imageUrlParse(document: Document) = throw Exception("Not used") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
override fun popularMangaSelector(): String = throw Exception("Not used") override fun popularMangaSelector(): String = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element): SManga = throw Exception("Not used") override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector(): String? = throw Exception("Not used") override fun searchMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun searchMangaSelector(): String = throw Exception("Not used") override fun searchMangaSelector(): String = throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used") override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used") override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector(): String? = throw Exception("Not used") override fun popularMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element): SManga = throw Exception("Not used") override fun popularMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun mangaDetailsParse(document: Document): SManga = throw Exception("Not used") override fun mangaDetailsParse(document: Document): SManga = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector(): String? = throw Exception("Not used") override fun latestUpdatesNextPageSelector(): String? = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element): SManga = throw Exception("Not used") override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used") override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun latestUpdatesSelector(): String = throw Exception("Not used") override fun latestUpdatesSelector(): String = throw UnsupportedOperationException()
} }

View File

@ -141,7 +141,7 @@ class Comicastle : ParsedHttpSource() {
} }
} }
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -159,7 +159,7 @@ class ComicExtra : ParsedHttpSource() {
return pages return pages
} }
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Unused method was called somehow!") override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
// Filters // Filters

View File

@ -87,28 +87,28 @@ class DarkLegacyComics : HttpSource() {
} }
override fun latestUpdatesRequest(page: Int) = override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int) = override fun popularMangaRequest(page: Int) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) = override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun popularMangaParse(response: Response) = override fun popularMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun searchMangaParse(response: Response) = override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response) = override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used!") throw UnsupportedOperationException()
companion object { companion object {
private const val THUMB_URL = "https://images2.imgbox.com/5d/d8/BVxRdljH_o.png" private const val THUMB_URL = "https://images2.imgbox.com/5d/d8/BVxRdljH_o.png"

Some files were not shown because too many files have changed in this diff Show More