Remove message in UnsupportedOperationException (#277)

This commit is contained in:
stevenyomi 2024-01-15 23:26:34 +08:00 committed by GitHub
parent 99b61247b0
commit c2be4ef094
273 changed files with 1002 additions and 1002 deletions

View File

@ -468,7 +468,7 @@ empty, so the app will skip the `fetchImageUrl` source and call directly `fetchI
### Misc notes
- Sometimes you may find no use for some inherited methods. If so just override them and throw
exceptions: `throw UnsupportedOperationException("Not used.")`
exceptions: `throw UnsupportedOperationException()`
- 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`).

View File

@ -56,13 +56,13 @@ open class A3Manga(
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> {
return when {
@ -92,11 +92,11 @@ open class A3Manga(
.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 {
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 {
return json.decodeFromString(body.string())

View File

@ -134,35 +134,35 @@ abstract class BakkinReaderX(
}
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun popularMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun chapterListParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun pageListParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
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")
}
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used.")
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not used.")
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used.")
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException("Not used.")
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> =
fetchPopularManga(page).map { p -> MangasPage(p.mangas.filter { it.title.contains(query) }, false) }
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not used.")
override fun searchMangaSelector() = throw UnsupportedOperationException("Not used.")
override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException("Not used.")
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun pageListParse(document: Document) =
document.select("#content > div[data-ptimg]").mapIndexed { i, e ->
@ -91,7 +91,7 @@ open class ComicGamma(
override fun pageListRequest(chapter: SChapter) =
GET(baseUrl + chapter.url.toNewChapterUrl(), headers)
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.")
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
companion object {
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 popularMangaRequest(page: Int): Request = throw UnsupportedOperationException("Not used")
override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used")
override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException()
override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
// Latest
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 latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used")
override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException()
// Search
@ -228,8 +228,8 @@ open class EroMuse(override val name: String, override val baseUrl: String) : Ht
.map { response -> parseManga(response.asJsoup()) }
}
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException("Not used")
override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used")
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException()
override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
// Details
@ -332,7 +332,7 @@ open class EroMuse(override val name: String, override val baseUrl: String) : Ht
return parsePages(response.asJsoup())
}
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used")
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
// Filters

View File

@ -190,7 +190,7 @@ abstract class FansubsCat(
override fun pageListParse(response: Response): List<Page> = parsePageListFromJson(response)
override fun imageUrlParse(response: Response): String =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
// Filter
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 =
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 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 {
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)!!

View File

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

View File

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

View File

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

View File

@ -123,7 +123,7 @@ abstract class LibGroup(
.build()
// 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> {
if (csrfToken.isEmpty()) {
return client.newCall(popularMangaRequest(page))

View File

@ -277,7 +277,7 @@ abstract class MadTheme(
}
override fun imageUrlParse(document: Document): String =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
// Date logic lifted from Madara
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())
}
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
@SuppressLint("DefaultLocale")

View File

@ -36,16 +36,16 @@ abstract class MangaCatalog(
title = name
url = sourceurl
}
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used")
override fun popularMangaNextPageSelector(): String? = throw Exception("Not used")
override fun popularMangaSelector(): String = throw Exception("Not used")
override fun popularMangaFromElement(element: Element) = throw Exception("Not used")
override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun popularMangaSelector(): String = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element) = throw UnsupportedOperationException()
// Latest
override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used")
override fun latestUpdatesNextPageSelector(): String? = throw Exception("Not used")
override fun latestUpdatesSelector(): String = throw Exception("Not used")
override fun latestUpdatesFromElement(element: Element): SManga = throw Exception("Not used")
override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector(): String? = throw UnsupportedOperationException()
override fun latestUpdatesSelector(): String = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException()
// Search
@ -59,10 +59,10 @@ abstract class MangaCatalog(
return Observable.just(MangasPage(mangas, false))
}
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw Exception("Not used")
override fun searchMangaNextPageSelector() = throw Exception("Not used")
override fun searchMangaSelector() = throw Exception("Not used")
override fun searchMangaFromElement(element: Element) = throw Exception("Not used")
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()
// Get Override
@ -106,5 +106,5 @@ abstract class MangaCatalog(
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) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun getMangaUrl(manga: SManga) = "$baseUrl/reader/${manga.url}"

View File

@ -279,7 +279,7 @@ abstract class MangaHub(
}
override fun chapterFromElement(element: Element): SChapter {
throw UnsupportedOperationException("Not Used")
throw UnsupportedOperationException()
}
private fun parseChapterDate(date: String): Long {
@ -361,7 +361,7 @@ abstract class MangaHub(
.doOnError { refreshApiKey(chapter) }
.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> {
val chapterObject = json.decodeFromString<ApiChapterPagesResponse>(response.body.string())
@ -393,7 +393,7 @@ abstract class MangaHub(
return GET(page.url, newHeaders)
}
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used")
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// filters
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()
// Unused
override fun popularMangaSelector(): String = throw UnsupportedOperationException("Not used")
override fun popularMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used")
override fun popularMangaNextPageSelector(): String? = throw UnsupportedOperationException("Not used")
override fun popularMangaSelector(): String = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element): SManga = throw UnsupportedOperationException()
override fun popularMangaNextPageSelector(): String? = throw UnsupportedOperationException()
override fun latestUpdatesSelector(): String = throw UnsupportedOperationException("Not used")
override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used")
override fun latestUpdatesNextPageSelector(): String? = throw UnsupportedOperationException("Not used")
override fun latestUpdatesSelector(): String = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException()
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) {
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 {
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 {
val id = getMangaId(manga.url)
@ -112,7 +112,7 @@ open class MCCMS(
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 =
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)

View File

@ -420,7 +420,7 @@ abstract class MMRCMS(
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<*>>(
Filter.Header("NOTE: Ignored if using text search!"),

View File

@ -107,32 +107,32 @@ open class MonochromeCMS(
json.decodeFromString<T>(body.string())
override fun popularMangaRequest(page: Int) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun popularMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun chapterListParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun pageListRequest(chapter: SChapter) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun pageListParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
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 chapterFromElement(element: Element): SChapter = throw Exception("Not used")
override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException()
private fun chapterFromElement(element: Element, scanlator: String?): SChapter =
SChapter.create().apply {
@ -307,7 +307,7 @@ abstract class MyMangaCMS(
.filterNot { it.attr("abs:data-src").isNullOrEmpty() }
.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
//region Filters

View File

@ -227,7 +227,7 @@ abstract class NepNep(
return parseDirectory(1)
}
override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used")
override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException()
// 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

View File

@ -95,9 +95,9 @@ open class OtakuSanctuary(
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 =
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> {
val document = response.asJsoup()

View File

@ -130,7 +130,7 @@ abstract class Paprika(
// never called
override fun chapterFromElement(element: Element): SChapter {
throw Exception("unreachable code was reached!")
throw UnsupportedOperationException()
}
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

View File

@ -174,15 +174,15 @@ abstract class ReadAllComics(
}
override fun imageUrlParse(document: Document) =
throw UnsupportedOperationException("Not Implemented")
throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not Implemented")
throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) =
throw UnsupportedOperationException("Not Implemented")
throw UnsupportedOperationException()
override fun latestUpdatesSelector() =
throw UnsupportedOperationException("Not Implemented")
throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() =
throw UnsupportedOperationException("Not Implemented")
throw UnsupportedOperationException()
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
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used!")
throw UnsupportedOperationException()
}

View File

@ -261,7 +261,7 @@ abstract class Senkuro(
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> {
val chaptersList = json.decodeFromString<PageWrapperDto<MangaTachiyomiChaptersDto>>(response.body.string())
val teamsList = chaptersList.data.mangaTachiyomiChapters.teams

View File

@ -215,7 +215,7 @@ abstract class SinMH(
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>) :
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 {
val mangaUrl = manga.url.toHttpUrl()

View File

@ -220,7 +220,7 @@ abstract class WPComics(
.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

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

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"

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

View File

@ -298,10 +298,10 @@ open class BatoTo(
add("prevPos", "null")
}
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException("Not used")
override fun searchMangaSelector() = throw UnsupportedOperationException("Not used")
override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException("Not used")
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not used")
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException()
override fun searchMangaSelector() = throw UnsupportedOperationException()
override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()
override fun searchMangaNextPageSelector() = throw UnsupportedOperationException()
override fun mangaDetailsRequest(manga: SManga): Request {
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)

View File

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

View File

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

View File

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

View File

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

View File

@ -138,35 +138,35 @@ abstract class CommitStrip(
// 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 {
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 {
throw Exception("Unused")
throw UnsupportedOperationException()
}
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 {
throw Exception("Unused")
throw UnsupportedOperationException()
}
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 -----------------
override fun imageUrlParse(response: Response): String {
throw Exception("imageUrlParse not supported.")
throw UnsupportedOperationException()
}
companion object {

View File

@ -70,7 +70,7 @@ abstract class DbMultiverse(override val lang: String, private val internalLang:
}.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()

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")

View File

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

View File

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

View File

@ -118,13 +118,13 @@ class Hennojin(override val lang: String, suffix: String) : ParsedHttpSource() {
get() = "/home/manga-reader/?manga=$title&view=multi"
override fun chapterListSelector() =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
override fun chapterFromElement(element: Element) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
override fun imageUrlParse(document: Document) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
companion object {
// 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 latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException("Not used")
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not used")
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used")
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used")
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException()
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
@ -254,7 +254,7 @@ class IMHentai(override val lang: String, private val imhLang: String) : ParsedH
return pages
}
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used")
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
// Filters

View File

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

View File

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

View File

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

View File

@ -86,8 +86,8 @@ class LittleGarden : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga = SManga.create()
// Chapter list
override fun chapterListSelector() = throw Exception("Not used")
override fun chapterFromElement(element: Element): SChapter = throw Exception("Not used")
override fun chapterListSelector() = throw UnsupportedOperationException()
override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException()
override fun chapterListParse(response: Response): List<SChapter> {
val document = response.asJsoup()
val slug = slugRegex.find(document.toString())?.groupValues?.get(1)
@ -189,5 +189,5 @@ class LittleGarden : ParsedHttpSource() {
}
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()
}
override fun chapterListParse(response: Response): List<SChapter> = throw UnsupportedOperationException("Not used")
override fun chapterListParse(response: Response): List<SChapter> = throw UnsupportedOperationException()
// 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> {
if (page.imageUrl != null) {
@ -461,7 +461,7 @@ abstract class Luscious(
return manga
}
}
override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not used")
override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException()
// Popular

View File

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

View File

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

View File

@ -49,9 +49,9 @@ class MeituaTop : HttpSource() {
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 {
if (query.isNotEmpty()) {
@ -70,7 +70,7 @@ class MeituaTop : HttpSource() {
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>> {
val chapter = SChapter.create().apply {
@ -82,7 +82,7 @@ class MeituaTop : HttpSource() {
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> {
val document = response.asJsoup()
@ -91,7 +91,7 @@ class MeituaTop : HttpSource() {
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(
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()
return searchMangaParse(response)
}
override fun popularMangaNextPageSelector() = throw Exception("Not used")
override fun popularMangaSelector() = throw Exception("Not used")
override fun popularMangaFromElement(element: Element) = throw Exception("Not used")
override fun popularMangaNextPageSelector() = throw UnsupportedOperationException()
override fun popularMangaSelector() = throw UnsupportedOperationException()
override fun popularMangaFromElement(element: Element) = throw UnsupportedOperationException()
// Latest
@SuppressLint("DefaultLocale")
@ -83,7 +83,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
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]"
private var mangaParsedSoFar = 0
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
override fun chapterListSelector() = ".entry-pagination a"
@ -214,7 +214,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
return chapter
}
override fun chapterFromElement(element: Element) = throw Exception("Not used")
override fun chapterFromElement(element: Element) = throw UnsupportedOperationException()
// Pages
@ -225,7 +225,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
.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
private var filtersCached = false

View File

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

View File

@ -312,8 +312,8 @@ open class NineNineNineHentai(
private val SharedPreferences.shortTitle get() = getBoolean(PREF_SHORT_TITLE, false)
override fun chapterListParse(response: Response) = throw UnsupportedOperationException("Not Used")
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not Used")
override fun chapterListParse(response: Response) = throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) = throw UnsupportedOperationException()
companion object {
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 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 {
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 mangaDetailsParse(response: Response) = throw UnsupportedOperationException("Not used.")
override fun mangaDetailsParse(response: Response) = throw UnsupportedOperationException()
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> {
val chapter = SChapter.create().apply {
@ -94,7 +94,7 @@ class Photos18 : HttpSource(), ConfigurableSource {
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> {
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(
SortFilter(),

View File

@ -370,32 +370,32 @@ class Pixiv(override val lang: String) : HttpSource() {
}
override fun chapterListParse(response: Response): List<SChapter> =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun imageUrlParse(response: Response): String =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int): Request =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun mangaDetailsParse(response: Response): SManga =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun pageListParse(response: Response): List<Page> =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun popularMangaParse(response: Response): MangasPage =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun popularMangaRequest(page: Int): Request =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
override fun searchMangaParse(response: Response): MangasPage =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
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
// <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>
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) =
throw UnsupportedOperationException("Not implemented")
throw UnsupportedOperationException()
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())
override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
companion object {
private val dateFormat =

View File

@ -47,9 +47,9 @@ open class TaddyInk(
}.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 {
val url = "$baseUrl/feeds/directory/list".toHttpUrl().newBuilder()

View File

@ -199,10 +199,10 @@ class Tappytoon(override val lang: String) : HttpSource() {
get() = url.substringAfter('|')
override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
companion object {
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 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
@ -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)
}
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
@ -210,5 +210,5 @@ class TheLibraryOfOhara(override val lang: String, private val siteLang: String)
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")) }
}
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used")
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
override fun imageRequest(page: Page): Request {
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
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
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not Used.")
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not Used.")
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not Used.")
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException("Not Used.")
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
// Popular
@ -86,7 +86,7 @@ class Xinmeitulu : ParsedHttpSource() {
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 {
private fun contentTypeIntercept(chain: Interceptor.Chain): Response {

View File

@ -112,28 +112,28 @@ open class Xkcd(
}
final override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
final override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
final override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
final override fun mangaDetailsParse(response: Response) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
final override fun popularMangaParse(response: Response) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
final override fun popularMangaRequest(page: Int) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
final override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
final override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
companion object {
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) =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
}

View File

@ -42,5 +42,5 @@ class XkcdFR : Xkcd("https://xkcd.lapin.org", "fr") {
}
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
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
get() = throw UnsupportedOperationException("Not used")
get() = throw UnsupportedOperationException()
}

View File

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

View File

@ -108,7 +108,7 @@ class Gmanga : ConfigurableSource, HttpSource() {
}
override fun imageUrlParse(response: Response): String =
throw UnsupportedOperationException("Not used")
throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response): MangasPage {
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 ===============================
private open class UriPartFilter(displayName: String, val vals: Array<Pair<String, String>>) :

View File

@ -67,13 +67,13 @@ class Shqqaa : ParsedHttpSource() {
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) }
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
override fun mangaDetailsParse(document: Document): SManga {
@ -118,7 +118,7 @@ class Shqqaa : ParsedHttpSource() {
}
return pages
}
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used")
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException()
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)
}
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
@ -119,11 +119,11 @@ class MangaTube : ParsedHttpSource() {
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
@ -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 =
throw UnsupportedOperationException("Not used.")
throw UnsupportedOperationException()
// Filters
override fun getFilterList(): FilterList = FilterList()

View File

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

View File

@ -237,7 +237,7 @@ class Anchira : HttpSource(), ConfigurableSource {
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

View File

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

View File

@ -25,9 +25,9 @@ class Aurora : HttpSource() {
private val auroraGenre = "fantasy"
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>> {
return Observable.just(fetchChapterListTR(baseUrl + manga.url, mutableListOf()).reversed())
@ -71,11 +71,11 @@ class Aurora : HttpSource() {
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> {
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.
""".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>> {
val singlePageChapterDoc = client.newCall(
@ -127,9 +127,9 @@ class Aurora : HttpSource() {
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
@ -185,13 +185,13 @@ class Aurora : HttpSource() {
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)
}
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 {
val pageDoc = response.asJsoup()
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> {
return Observable.just(
@ -298,7 +298,7 @@ class Buttsmithy : HttpSource() {
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>> {
val comicPageDoc = client.newCall(GET(chapter.url, headers)).execute().asJsoup()
@ -308,18 +308,18 @@ class Buttsmithy : HttpSource() {
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> {
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 =
throw Exception("Not used")
throw UnsupportedOperationException()
}

View File

@ -99,29 +99,29 @@ class CloneManga : ParsedHttpSource() {
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 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 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 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 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") }
}

View File

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

View File

@ -99,13 +99,13 @@ class Collectedcurios : ParsedHttpSource() {
return chapterList
}
override fun chapterListSelector() = throw Exception("Not used")
override fun chapterListSelector() = throw UnsupportedOperationException()
override fun chapterFromElement(element: Element) = SChapter.create().apply {
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)))!!
@ -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

View File

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

View File

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

View File

@ -196,14 +196,14 @@ class DisasterScans : HttpSource() {
}
override fun searchMangaParse(response: Response) =
throw UnsupportedOperationException("Not Used")
throw UnsupportedOperationException()
override fun imageUrlParse(response: Response) =
throw UnsupportedOperationException("Not Used")
throw UnsupportedOperationException()
override fun latestUpdatesParse(response: Response) =
throw UnsupportedOperationException("Not Implemented")
throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) =
throw UnsupportedOperationException("Not Implemented")
throw UnsupportedOperationException()
}

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