From c2be4ef094b4e1376d11189e46d239cce73cddf1 Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Mon, 15 Jan 2024 23:26:34 +0800 Subject: [PATCH] Remove message in UnsupportedOperationException (#277) --- CONTRIBUTING.md | 2 +- .../tachiyomi/multisrc/a3manga/A3Manga.kt | 16 ++++----- .../multisrc/bakkin/BakkinReaderX.kt | 22 ++++++------ .../multisrc/comicgamma/ComicGamma.kt | 18 +++++----- .../tachiyomi/multisrc/eromuse/EroMuse.kt | 14 ++++---- .../multisrc/fansubscat/FansubsCat.kt | 2 +- .../tachiyomi/multisrc/flixscans/FlixScans.kt | 2 +- .../tachiyomi/multisrc/fmreader/FMReader.kt | 2 +- .../tachiyomi/multisrc/foolslide/FoolSlide.kt | 2 +- .../tachiyomi/multisrc/grouple/GroupLe.kt | 2 +- .../eu/kanade/tachiyomi/multisrc/guya/Guya.kt | 6 ++-- .../multisrc/hentaihand/HentaiHand.kt | 2 +- .../tachiyomi/multisrc/libgroup/LibGroup.kt | 2 +- .../tachiyomi/multisrc/madtheme/MadTheme.kt | 2 +- .../tachiyomi/multisrc/mangabox/MangaBox.kt | 2 +- .../multisrc/mangacatalog/MangaCatalog.kt | 26 +++++++------- .../multisrc/mangadventure/MangAdventure.kt | 2 +- .../tachiyomi/multisrc/mangahub/MangaHub.kt | 6 ++-- .../multisrc/mangaraw/MangaRawTheme.kt | 2 +- .../multisrc/mangathemesia/MangaThemesia.kt | 14 ++++---- .../multisrc/mangaworld/MangaWorld.kt | 2 +- .../kanade/tachiyomi/multisrc/mccms/MCCMS.kt | 6 ++-- .../tachiyomi/multisrc/mmrcms/MMRCMS.kt | 2 +- .../multisrc/monochrome/MonochromeCMS.kt | 20 +++++------ .../multisrc/mymangacms/MyMangaCMS.kt | 4 +-- .../tachiyomi/multisrc/nepnep/NepNep.kt | 4 +-- .../multisrc/otakusanctuary/OtakuSanctuary.kt | 6 ++-- .../tachiyomi/multisrc/paprika/Paprika.kt | 4 +-- .../multisrc/readallcomics/ReadAllComics.kt | 12 +++---- .../multisrc/readerfront/ReaderFront.kt | 6 ++-- .../tachiyomi/multisrc/senkuro/Senkuro.kt | 2 +- .../kanade/tachiyomi/multisrc/sinmh/SinMH.kt | 2 +- .../multisrc/webtoons/WebtoonsTranslate.kt | 6 ++-- .../tachiyomi/multisrc/wpcomics/WPComics.kt | 2 +- .../kanade/tachiyomi/multisrc/zbulu/Zbulu.kt | 2 +- .../multisrc/zeistmanga/ZeistManga.kt | 2 +- .../tachiyomi/multisrc/zmanga/ZManga.kt | 2 +- .../tachiyomi/extension/all/batoto/BatoTo.kt | 10 +++--- .../extension/all/buondua/BuonDua.kt | 2 +- .../extension/all/comicfury/ComicFury.kt | 2 +- .../extension/all/comickfun/ComickFun.kt | 2 +- .../tachiyomi/extension/all/comico/Comico.kt | 4 +-- .../extension/all/commitstrip/CommitStrip.kt | 30 ++++++++-------- .../tachiyomi/extension/all/cubari/Cubari.kt | 6 ++-- .../all/dragonballmultiverse/DbMultiverse.kt | 2 +- .../extension/all/ehentai/EHentai.kt | 4 +-- .../extension/all/everiaclub/EveriaClub.kt | 2 +- .../all/freleinbooks/FreleinBooks.kt | 2 +- .../extension/all/hennojin/Hennojin.kt | 6 ++-- .../all/holonometria/Holonometria.kt | 10 +++--- .../extension/all/imhentai/IMHentai.kt | 6 ++-- .../tachiyomi/extension/all/izneo/Izneo.kt | 10 +++--- .../extension/all/junmeitu/Junmeitu.kt | 2 +- .../all/leagueoflegends/LOLUniverse.kt | 16 ++++----- .../all/littlegarden/LittleGarden.kt | 6 ++-- .../extension/all/luscious/Luscious.kt | 8 ++--- .../extension/all/mangapark/MangaPark.kt | 2 +- .../extension/all/mangaup/MangaUp.kt | 4 +-- .../tachiyomi/extension/all/mango/Mango.kt | 10 +++--- .../extension/all/meituatop/MeituaTop.kt | 10 +++--- .../all/myreadingmanga/MyReadingManga.kt | 14 ++++---- .../extension/all/netcomics/Netcomics.kt | 20 +++++------ .../extension/all/nhentai/NHentai.kt | 6 ++-- .../ninenineninehentai/NineNineNineHentai.kt | 4 +-- .../extension/all/noisemanga/NoiseManga.kt | 8 ++--- .../extension/all/photos18/Photos18.kt | 6 ++-- .../tachiyomi/extension/all/pixiv/Pixiv.kt | 20 +++++------ .../all/sandraandwoo/SandraAndWoo.kt | 28 +++++++-------- .../all/simplycosplay/SimplyCosplay.kt | 4 +-- .../all/simplyhentai/SimplyHentai.kt | 2 +- .../extension/all/taddyink/TaddyInk.kt | 4 +-- .../extension/all/tappytoon/Tappytoon.kt | 4 +-- .../thelibraryofohara/TheLibraryOfOhara.kt | 10 +++--- .../extension/all/toomics/ToomicsGlobal.kt | 2 +- .../all/vinnieVeritas/vinnieVeritas.kt | 30 ++++++++-------- .../extension/all/xinmeitulu/Xinmeitulu.kt | 10 +++--- .../tachiyomi/extension/all/xkcd/Xkcd.kt | 16 ++++----- .../extension/all/xkcd/translations/XkcdES.kt | 2 +- .../extension/all/xkcd/translations/XkcdFR.kt | 2 +- .../extension/all/xkcd/translations/XkcdRU.kt | 2 +- .../extension/all/xkcd/translations/XkcdZH.kt | 2 +- .../all/yaoimangaonline/YaoiMangaOnline.kt | 2 +- .../tachiyomi/extension/ar/gmanga/Gmanga.kt | 2 +- .../tachiyomi/extension/ar/mangaae/MangaAe.kt | 2 +- .../tachiyomi/extension/ar/shqqaa/Shqqaa.kt | 10 +++--- .../tachiyomi/extension/ar/teamx/TeamX.kt | 2 +- .../extension/de/mangatube/MangaTube.kt | 14 ++++---- .../extension/en/mangarok/MangaRok.kt | 2 +- .../extension/en/allanime/AllAnime.kt | 2 +- .../tachiyomi/extension/en/anchira/Anchira.kt | 2 +- .../extension/en/apairof2/APairOf2.kt | 2 +- .../tachiyomi/extension/en/aurora/Aurora.kt | 26 +++++++------- .../extension/en/buttsmithy/Buttsmithy.kt | 18 +++++----- .../extension/en/clonemanga/CloneManga.kt | 12 +++---- .../extension/en/cloudrecess/CloudRecess.kt | 2 +- .../en/collectedcurios/Collectedcurios.kt | 32 ++++++++--------- .../extension/en/comicastle/Comicastle.kt | 2 +- .../extension/en/comicextra/ComicExtra.kt | 2 +- .../en/darklegacycomics/DarkLegacyComics.kt | 16 ++++----- .../en/disasterscans/DisasterScans.kt | 8 ++--- .../tachiyomi/extension/en/doujins/Doujins.kt | 2 +- .../extension/en/earlymanga/EarlyManga.kt | 2 +- .../en/eggporncomics/Eggporncomics.kt | 6 ++-- .../extension/en/elanschool/ElanSchool.kt | 16 ++++----- .../en/existentialcomics/ExistentialComics.kt | 28 +++++++-------- .../tachiyomi/extension/en/explosm/Explosm.kt | 10 +++--- .../extension/en/grrlpower/GrrlPower.kt | 16 ++++----- .../en/gunnerkriggcourt/GunnerkriggCourt.kt | 28 +++++++-------- .../tachiyomi/extension/en/gwtb/GWTB.kt | 16 ++++----- .../extension/en/hentai2read/Hentai2Read.kt | 6 ++-- .../extension/en/hentaidexy/Hentaidexy.kt | 2 +- .../extension/en/hentaifox/HentaiFox.kt | 16 ++++----- .../extension/en/hentaihere/HentaiHere.kt | 4 +-- .../extension/en/hiveworks/Hiveworks.kt | 10 +++--- .../extension/en/honkaiimpact/Honkaiimpact.kt | 10 +++--- .../en/infinityscans/InfinityScans.kt | 2 +- .../extension/en/irovedout/IRovedOut.kt | 26 +++++++------- .../extension/en/keenspot/TwoKinds.kt | 18 +++++----- .../KillSixBillionDemons.kt | 18 +++++----- .../tachiyomi/extension/en/kiutaku/Kiutaku.kt | 2 +- .../extension/en/kouhaiwork/KouhaiWork.kt | 2 +- .../extension/en/latisbooks/Latisbooks.kt | 14 ++++---- .../extension/en/lemonfont/LemonFont.kt | 24 ++++++------- .../extension/en/likemanga/LikeManga.kt | 2 +- .../en/loadingartist/LoadingArtist.kt | 16 ++++----- .../extension/en/madokami/Madokami.kt | 4 +-- .../tachiyomi/extension/en/manga1s/manga1s.kt | 2 +- .../extension/en/mangademon/MangaDemon.kt | 2 +- .../extension/en/mangadoom/MangaDoom.kt | 4 +-- .../extension/en/mangafox/MangaFox.kt | 2 +- .../extension/en/mangafreak/Mangafreak.kt | 2 +- .../tachiyomi/extension/en/mangago/Mangago.kt | 2 +- .../extension/en/mangahere/Mangahere.kt | 2 +- .../extension/en/mangajar/MangaJar.kt | 4 +-- .../extension/en/mangakatana/MangaKatana.kt | 2 +- .../extension/en/mangamiso/MangaMiso.kt | 2 +- .../extension/en/mangaplex/MangaPlex.kt | 2 +- .../extension/en/mangarawclub/MangaRawClub.kt | 2 +- .../extension/en/mangasail/Mangasail.kt | 2 +- .../extension/en/mangasect/MangaSect.kt | 12 +++---- .../extension/en/mangatown/Mangatown.kt | 2 +- .../extension/en/manta/MantaComics.kt | 8 ++--- .../extension/en/megatokyo/Megatokyo.kt | 30 ++++++++-------- .../extension/en/multporn/Multporn.kt | 8 ++--- .../en/myhentaicomics/MyHentaiComics.kt | 6 ++-- .../en/myhentaigallery/MyHentaiGallery.kt | 6 ++-- .../extension/en/nineanime/NineAnime.kt | 2 +- .../extension/en/ninehentai/NineHentai.kt | 2 +- .../tachiyomi/extension/en/oglaf/Oglaf.kt | 28 +++++++-------- .../tachiyomi/extension/en/oots/oots.kt | 28 +++++++-------- .../extension/en/oppaistream/OppaiStream.kt | 2 +- .../extension/en/patchfriday/PatchFriday.kt | 18 +++++----- .../extension/en/purplecress/PurpleCress.kt | 8 ++--- .../tachiyomi/extension/en/pururin/Pururin.kt | 2 +- .../QuestionableContent.kt | 28 +++++++-------- .../extension/en/rainofsnow/RainOfSnow.kt | 10 +++--- .../extension/en/randowiz/Randowiz.kt | 28 +++++++-------- .../extension/en/rawmanga/RawManga.kt | 6 ++-- .../tachiyomi/extension/en/readm/ReadM.kt | 8 ++--- .../en/readmangatoday/Readmangatoday.kt | 2 +- .../en/reallifecomics/RealLifeComics.kt | 28 +++++++-------- .../extension/en/reaperscans/ReaperScans.kt | 4 +-- .../extension/en/rizzcomic/RizzComic.kt | 4 +-- .../tachiyomi/extension/en/rmanga/Rmanga.kt | 2 +- .../en/schlockmercenary/Schlockmercenary.kt | 22 ++++++------ .../SilentMangaAudition.kt | 14 ++++---- .../en/solarandsundry/SolarAndSundry.kt | 16 ++++----- .../extension/en/supermega/Supermega.kt | 34 +++++++++---------- .../extension/en/swordscomic/SwordsComic.kt | 16 ++++----- .../extension/en/tapastic/Tapastic.kt | 2 +- .../extension/en/tcbscans/TCBScans.kt | 2 +- .../en/theduckwebcomics/TheDuckWebcomics.kt | 6 ++-- .../en/thepropertyofhate/ThePropertyOfHate.kt | 14 ++++---- .../tachiyomi/extension/en/tsumino/Tsumino.kt | 2 +- .../extension/en/vgperson/Vgperson.kt | 12 +++---- .../extension/en/vyvymanga/VyvyManga.kt | 2 +- .../extension/en/warforrayuba/WarForRayuba.kt | 10 +++--- .../extension/en/webcomics/Webcomics.kt | 2 +- .../extension/en/webnovel/WebNovel.kt | 2 +- .../extension/en/zeroscans/ZeroScans.kt | 14 ++++---- .../extension/es/brakeout/Brakeout.kt | 2 +- .../es/cerberusseries/CerberusSeries.kt | 8 ++--- .../extension/es/heavenmanga/HeavenManga.kt | 2 +- .../extension/es/ikigaimangas/IkigaiMangas.kt | 2 +- .../tachiyomi/extension/es/inmanga/InManga.kt | 4 +-- .../es/kingsofdarkness/KingsOfDarkness.kt | 10 +++--- .../tachiyomi/extension/es/kumanga/Kumanga.kt | 6 ++-- .../extension/es/lectormanga/LectorManga.kt | 6 ++-- .../extension/es/leercapitulo/LeerCapitulo.kt | 6 ++-- .../es/leermangasxyz/LeerMangasXYZ.kt | 10 +++--- .../extension/es/mangalatino/MangaLatino.kt | 2 +- .../extension/es/mangamx/MangaOni.kt | 2 +- .../extension/es/manhwasnet/ManhwasNet.kt | 2 +- .../tachiyomi/extension/es/nartag/Nartag.kt | 2 +- .../es/olympusscanlation/OlympusScanlation.kt | 2 +- .../extension/es/ravenmanga/RavenManga.kt | 2 +- .../es/templescanesp/TempleScanEsp.kt | 2 +- .../es/tumangaonline/TuMangaOnline.kt | 6 ++-- .../tachiyomi/extension/es/vcpvmp/VCPVMP.kt | 14 ++++---- .../extension/fr/animesama/AnimeSama.kt | 6 ++-- .../extension/fr/aralosbd/AralosBD.kt | 2 +- .../tachiyomi/extension/fr/fmteam/FMTEAM.kt | 2 +- .../extension/fr/furyosquad/FuryoSquad.kt | 8 ++--- .../extension/fr/japanread/BentoManga.kt | 4 +-- .../extension/fr/mangakawaii/MangaKawaii.kt | 6 ++-- .../extension/fr/scanmanga/ScanManga.kt | 12 +++---- .../extension/id/bacakomik/BacaKomik.kt | 2 +- .../extension/id/doujindesu/DoujinDesu.kt | 2 +- .../extension/id/komikindoid/KomikIndoID.kt | 2 +- .../tachiyomi/extension/id/komiku/Komiku.kt | 2 +- .../tachiyomi/extension/id/mangaku/Mangaku.kt | 2 +- .../extension/id/mangalay/Mangalay.kt | 18 +++++----- .../id/onepieceberwarna/OnePieceBerwarna.kt | 22 ++++++------ .../extension/it/animegdrclub/AnimeGDRClub.kt | 2 +- .../extension/it/digitalteam/DigitalTeam.kt | 4 +-- .../it/novelleleggere/NovelleLeggere.kt | 10 +++--- .../extension/it/zeurelscan/ZeurelScan.kt | 6 ++-- .../extension/ja/comicnewtype/ComicNewtype.kt | 6 ++-- .../tachiyomi/extension/ja/ganma/Ganma.kt | 8 ++--- .../extension/ja/mangacross/MangaCross.kt | 2 +- .../extension/ja/nicomanga/Nicomanga.kt | 2 +- .../ja/nicovideoseiga/NicovideoSeiga.kt | 2 +- .../ja/nikkangecchan/Nikkangecchan.kt | 8 ++--- .../extension/ja/rawdevart/Rawdevart.kt | 2 +- .../extension/ja/senmanga/SenManga.kt | 2 +- .../tachiyomi/extension/ja/twi4/Twi4.kt | 10 +++--- .../tachiyomi/extension/ko/jmana/JMana.kt | 8 ++--- .../extension/ko/navercomic/NaverComic.kt | 6 ++-- .../extension/ko/navercomic/NaverComicBase.kt | 18 +++++----- .../tachiyomi/extension/ko/newtoki/NewToki.kt | 2 +- .../tachiyomi/extension/ko/toonkor/Toonkor.kt | 2 +- .../tachiyomi/extension/pt/bakai/Bakai.kt | 8 ++--- .../tachiyomi/extension/pt/bruttal/Bruttal.kt | 4 +-- .../extension/pt/lermanga/LerManga.kt | 8 ++--- .../extension/pt/mundohentai/MundoHentai.kt | 8 ++--- .../tachiyomi/extension/pt/opex/OnePieceEx.kt | 8 ++--- .../tachiyomi/extension/ru/acomics/AComics.kt | 4 +-- .../tachiyomi/extension/ru/desu/Desu.kt | 2 +- .../extension/ru/mangabook/MangaBook.kt | 2 +- .../extension/ru/mangapoisk/MangaPoisk.kt | 4 +-- .../tachiyomi/extension/ru/newbie/Newbie.kt | 6 ++-- .../extension/ru/nudemoon/Nudemoon.kt | 4 +-- .../extension/ru/unicomics/UniComics.kt | 2 +- .../extension/th/mikudoujin/MikuDoujin.kt | 12 +++---- .../extension/th/nekopost/Nekopost.kt | 8 ++--- .../extension/th/niceoppai/Niceoppai.kt | 4 +-- .../extension/tr/mangadenizi/MangaDenizi.kt | 4 +-- .../extension/tr/mangaship/MangaShip.kt | 2 +- .../extension/tr/serimanga/SeriManga.kt | 2 +- .../extension/vi/blogtruyen/BlogTruyen.kt | 8 ++--- .../extension/vi/lxhentai/LxHentai.kt | 2 +- .../tachiyomi/extension/vi/MangaXY/MangaXY.kt | 2 +- .../extension/vi/truyengihot/TruyenGiHot.kt | 2 +- .../extension/vi/truyenqq/TruyenQQ.kt | 2 +- .../extension/vi/yurineko/YuriNeko.kt | 6 ++-- .../extension/zh/baozimanhua/Baozi.kt | 12 +++---- .../kanade/tachiyomi/extension/zh/bh3/BH3.kt | 4 +-- .../tachiyomi/extension/zh/boylove/BoyLove.kt | 6 ++-- .../extension/zh/comicabc/Comicabc.kt | 4 +-- .../tachiyomi/extension/zh/happymh/Happymh.kt | 2 +- .../tachiyomi/extension/zh/iqiyi/Iqiyi.kt | 6 ++-- .../zh/jinmantiantang/Jinmantiantang.kt | 2 +- .../zh/kuaikanmanhua/Kuaikanmanhua.kt | 2 +- .../tachiyomi/extension/zh/manhuadb/MDB.kt | 4 +-- .../extension/zh/manhuadb/ManhuaDB.kt | 8 ++--- .../extension/zh/manhuagui/Manhuagui.kt | 4 +-- .../extension/zh/manhuaren/Manhuaren.kt | 2 +- .../tachiyomi/extension/zh/manwa/Manwa.kt | 8 ++--- .../extension/zh/roumanwu/Roumanwu.kt | 2 +- .../tachiyomi/extension/zh/sixmh/SixMH.kt | 2 +- .../zh/tencentcomics/TencentComics.kt | 2 +- .../zh/terrahistoricus/TerraHistoricus.kt | 6 ++-- .../tachiyomi/extension/zh/wnacg/wnacg.kt | 12 +++---- 273 files changed, 1002 insertions(+), 1002 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8dd7a16cc..d33530970 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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`). diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/a3manga/A3Manga.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/a3manga/A3Manga.kt index daf21dd05..532d1a16f 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/a3manga/A3Manga.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/a3manga/A3Manga.kt @@ -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 { 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() @@ -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 Response.parseAs(): T { return json.decodeFromString(body.string()) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/bakkin/BakkinReaderX.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/bakkin/BakkinReaderX.kt index 9910e02bc..dc89a458a 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/bakkin/BakkinReaderX.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/bakkin/BakkinReaderX.kt @@ -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() } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/comicgamma/ComicGamma.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/comicgamma/ComicGamma.kt index 9cd51ba20..70697caba 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/comicgamma/ComicGamma.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/comicgamma/ComicGamma.kt @@ -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 = 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 { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/eromuse/EroMuse.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/eromuse/EroMuse.kt index b40f74752..358fe9133 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/eromuse/EroMuse.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/eromuse/EroMuse.kt @@ -188,15 +188,15 @@ open class EroMuse(override val name: String, override val baseUrl: String) : Ht override fun fetchPopularManga(page: Int): Observable = 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 = 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 diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fansubscat/FansubsCat.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fansubscat/FansubsCat.kt index ca699c26d..4a4012cd1 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fansubscat/FansubsCat.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fansubscat/FansubsCat.kt @@ -190,7 +190,7 @@ abstract class FansubsCat( override fun pageListParse(response: Response): List = parsePageListFromJson(response) override fun imageUrlParse(response: Response): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() // Filter override fun getFilterList() = FilterList( diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/flixscans/FlixScans.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/flixscans/FlixScans.kt index 251e09461..d282fbfae 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/flixscans/FlixScans.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/flixscans/FlixScans.kt @@ -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 Response.parseAs(): T = use { body.string() }.let(json::decodeFromString) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReader.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReader.kt index defe0f092..a361662f0 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReader.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReader.kt @@ -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("Status", arrayOf("Any", "Completed", "Ongoing")) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/foolslide/FoolSlide.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/foolslide/FoolSlide.kt index e64a3b36a..34eacf257 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/foolslide/FoolSlide.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/foolslide/FoolSlide.kt @@ -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().getSharedPreferences("source_$id", 0x0000)!! diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/grouple/GroupLe.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/grouple/GroupLe.kt index 8afa0d9b8..9ba9b4272 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/grouple/GroupLe.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/grouple/GroupLe.kt @@ -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) { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/guya/Guya.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/guya/Guya.kt index 918cca83b..605a279ec 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/guya/Guya.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/guya/Guya.kt @@ -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 { @@ -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 { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/hentaihand/HentaiHand.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/hentaihand/HentaiHand.kt index 5bfd95193..62574c3f4 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/hentaihand/HentaiHand.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/hentaihand/HentaiHand.kt @@ -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 diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt index 4d6c18a34..4c9bc812c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/libgroup/LibGroup.kt @@ -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 { if (csrfToken.isEmpty()) { return client.newCall(popularMangaRequest(page)) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt index 53cfec13f..fdb65c3ac 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt @@ -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 { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangabox/MangaBox.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangabox/MangaBox.kt index e4fa52982..57f747cf1 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangabox/MangaBox.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangabox/MangaBox.kt @@ -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") diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt index 14ebf65e8..48668e28a 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt @@ -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() } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventure.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventure.kt index e152cc16d..d719cb75c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventure.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventure.kt @@ -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}" diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangahub/MangaHub.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangahub/MangaHub.kt index b6aa485e4..05ff615d5 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangahub/MangaHub.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangahub/MangaHub.kt @@ -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 = throw UnsupportedOperationException("Not used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() override fun pageListParse(response: Response): List { val chapterObject = json.decodeFromString(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) { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangaraw/MangaRawTheme.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangaraw/MangaRawTheme.kt index c84d214cb..f614cae9c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangaraw/MangaRawTheme.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangaraw/MangaRawTheme.kt @@ -78,5 +78,5 @@ abstract class MangaRawTheme( } } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt index 394f0ecba..788030d69 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesia.kt @@ -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) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangaworld/MangaWorld.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangaworld/MangaWorld.kt index 38dfab79d..ab358e55f 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangaworld/MangaWorld.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangaworld/MangaWorld.kt @@ -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 { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mccms/MCCMS.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mccms/MCCMS.kt index 393448915..e32403e12 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mccms/MCCMS.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mccms/MCCMS.kt @@ -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> = 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 = throw UnsupportedOperationException("Not used.") + override fun chapterListParse(response: Response): List = 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) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mmrcms/MMRCMS.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mmrcms/MMRCMS.kt index dd6a8cc29..fda84896d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mmrcms/MMRCMS.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mmrcms/MMRCMS.kt @@ -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.Header("NOTE: Ignored if using text search!"), diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/monochrome/MonochromeCMS.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/monochrome/MonochromeCMS.kt index 28a4d786b..204ba3125 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/monochrome/MonochromeCMS.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/monochrome/MonochromeCMS.kt @@ -107,32 +107,32 @@ open class MonochromeCMS( json.decodeFromString(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() } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mymangacms/MyMangaCMS.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mymangacms/MyMangaCMS.kt index 1f7e5fb87..cf874e907 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mymangacms/MyMangaCMS.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mymangacms/MyMangaCMS.kt @@ -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 diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt index 14cb41d8d..27e8a446d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/nepnep/NepNep.kt @@ -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 diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuary.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuary.kt index 2fd84def8..7dbcdc9e1 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuary.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuary.kt @@ -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 { val document = response.asJsoup() diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/paprika/Paprika.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/paprika/Paprika.kt index cf1ca11c7..ef47e6287 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/paprika/Paprika.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/paprika/Paprika.kt @@ -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 diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readallcomics/ReadAllComics.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readallcomics/ReadAllComics.kt index babb5f1d6..845d926b7 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readallcomics/ReadAllComics.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readallcomics/ReadAllComics.kt @@ -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() } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFront.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFront.kt index 7e3ab39b4..5a671ff47 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFront.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/readerfront/ReaderFront.kt @@ -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() } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/senkuro/Senkuro.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/senkuro/Senkuro.kt index 227ea16a1..0572f43b3 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/senkuro/Senkuro.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/senkuro/Senkuro.kt @@ -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 { val chaptersList = json.decodeFromString>(response.body.string()) val teamsList = chaptersList.data.mangaTachiyomiChapters.teams diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/sinmh/SinMH.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/sinmh/SinMH.kt index aa605aa90..9908d3209 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/sinmh/SinMH.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/sinmh/SinMH.kt @@ -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, private val uriParts: Array) : Filter.Select(displayName, values) { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsTranslate.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsTranslate.kt index fc95b7f1a..6efa157b6 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsTranslate.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsTranslate.kt @@ -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 = throw Exception("Not used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() override fun chapterListRequest(manga: SManga): Request { val mangaUrl = manga.url.toHttpUrl() diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComics.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComics.kt index 8f4a0bebd..040198e9b 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComics.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComics.kt @@ -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 diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zbulu/Zbulu.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zbulu/Zbulu.kt index 211ab6e16..ceefaaf22 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zbulu/Zbulu.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zbulu/Zbulu.kt @@ -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 diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zeistmanga/ZeistManga.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zeistmanga/ZeistManga.kt index fa9551926..790d6a1ba 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zeistmanga/ZeistManga.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zeistmanga/ZeistManga.kt @@ -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" diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zmanga/ZManga.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zmanga/ZManga.kt index 45120fad6..710ef00b9 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zmanga/ZManga.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zmanga/ZManga.kt @@ -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 diff --git a/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt b/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt index 7f790e003..40a55756c 100644 --- a/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt +++ b/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt @@ -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) diff --git a/src/all/buondua/src/eu/kanade/tachiyomi/extension/all/buondua/BuonDua.kt b/src/all/buondua/src/eu/kanade/tachiyomi/extension/all/buondua/BuonDua.kt index ca18c2c49..dfcb9f48e 100644 --- a/src/all/buondua/src/eu/kanade/tachiyomi/extension/all/buondua/BuonDua.kt +++ b/src/all/buondua/src/eu/kanade/tachiyomi/extension/all/buondua/BuonDua.kt @@ -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( diff --git a/src/all/comicfury/src/eu/kanade/tachiyomi/extension/all/comicfury/ComicFury.kt b/src/all/comicfury/src/eu/kanade/tachiyomi/extension/all/comicfury/ComicFury.kt index 47c9cb849..771f455dc 100644 --- a/src/all/comicfury/src/eu/kanade/tachiyomi/extension/all/comicfury/ComicFury.kt +++ b/src/all/comicfury/src/eu/kanade/tachiyomi/extension/all/comicfury/ComicFury.kt @@ -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", "") diff --git a/src/all/comickfun/src/eu/kanade/tachiyomi/extension/all/comickfun/ComickFun.kt b/src/all/comickfun/src/eu/kanade/tachiyomi/extension/all/comickfun/ComickFun.kt index 918d56488..d2f065e86 100644 --- a/src/all/comickfun/src/eu/kanade/tachiyomi/extension/all/comickfun/ComickFun.kt +++ b/src/all/comickfun/src/eu/kanade/tachiyomi/extension/all/comickfun/ComickFun.kt @@ -452,7 +452,7 @@ abstract class ComickFun( } override fun imageUrlParse(response: Response): String { - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() } override fun getFilterList() = getFilters() diff --git a/src/all/comico/src/eu/kanade/tachiyomi/extension/all/comico/Comico.kt b/src/all/comico/src/eu/kanade/tachiyomi/extension/all/comico/Comico.kt index 5ab0d9882..26856191f 100644 --- a/src/all/comico/src/eu/kanade/tachiyomi/extension/all/comico/Comico.kt +++ b/src/all/comico/src/eu/kanade/tachiyomi/extension/all/comico/Comico.kt @@ -188,10 +188,10 @@ open class Comico( ) = json.decodeFromJsonElement>(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" diff --git a/src/all/commitstrip/src/eu/kanade/tachiyomi/extension/all/commitstrip/CommitStrip.kt b/src/all/commitstrip/src/eu/kanade/tachiyomi/extension/all/commitstrip/CommitStrip.kt index 0c24a82eb..e1b8bd88d 100644 --- a/src/all/commitstrip/src/eu/kanade/tachiyomi/extension/all/commitstrip/CommitStrip.kt +++ b/src/all/commitstrip/src/eu/kanade/tachiyomi/extension/all/commitstrip/CommitStrip.kt @@ -138,35 +138,35 @@ abstract class CommitStrip( // Unsupported - override fun pageListParse(document: Document): List = throw Exception("Not Used") + override fun pageListParse(document: Document): List = 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" diff --git a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt index 4f013141e..82c158ea7 100644 --- a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt +++ b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt @@ -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 { diff --git a/src/all/dragonballmultiverse/src/eu/kanade/tachiyomi/extension/all/dragonballmultiverse/DbMultiverse.kt b/src/all/dragonballmultiverse/src/eu/kanade/tachiyomi/extension/all/dragonballmultiverse/DbMultiverse.kt index af4233dd3..c9fbb06e0 100644 --- a/src/all/dragonballmultiverse/src/eu/kanade/tachiyomi/extension/all/dragonballmultiverse/DbMultiverse.kt +++ b/src/all/dragonballmultiverse/src/eu/kanade/tachiyomi/extension/all/dragonballmultiverse/DbMultiverse.kt @@ -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() diff --git a/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt b/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt index 919f1faf1..936623544 100644 --- a/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt +++ b/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt @@ -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") diff --git a/src/all/everiaclub/src/eu/kanade/tachiyomi/extension/all/everiaclub/EveriaClub.kt b/src/all/everiaclub/src/eu/kanade/tachiyomi/extension/all/everiaclub/EveriaClub.kt index a9ec4248e..e7da24075 100644 --- a/src/all/everiaclub/src/eu/kanade/tachiyomi/extension/all/everiaclub/EveriaClub.kt +++ b/src/all/everiaclub/src/eu/kanade/tachiyomi/extension/all/everiaclub/EveriaClub.kt @@ -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( diff --git a/src/all/freleinbooks/src/eu/kanade/tachiyomi/extension/all/freleinbooks/FreleinBooks.kt b/src/all/freleinbooks/src/eu/kanade/tachiyomi/extension/all/freleinbooks/FreleinBooks.kt index 1559a2d88..b6eb97780 100644 --- a/src/all/freleinbooks/src/eu/kanade/tachiyomi/extension/all/freleinbooks/FreleinBooks.kt +++ b/src/all/freleinbooks/src/eu/kanade/tachiyomi/extension/all/freleinbooks/FreleinBooks.kt @@ -144,7 +144,7 @@ class FreleinBooks() : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() // Filters diff --git a/src/all/hennojin/src/eu/kanade/tachiyomi/extension/all/hennojin/Hennojin.kt b/src/all/hennojin/src/eu/kanade/tachiyomi/extension/all/hennojin/Hennojin.kt index c9b293475..208b0af7f 100644 --- a/src/all/hennojin/src/eu/kanade/tachiyomi/extension/all/hennojin/Hennojin.kt +++ b/src/all/hennojin/src/eu/kanade/tachiyomi/extension/all/hennojin/Hennojin.kt @@ -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 diff --git a/src/all/holonometria/src/eu/kanade/tachiyomi/extension/all/holonometria/Holonometria.kt b/src/all/holonometria/src/eu/kanade/tachiyomi/extension/all/holonometria/Holonometria.kt index 4c9058328..89a6f1bb5 100644 --- a/src/all/holonometria/src/eu/kanade/tachiyomi/extension/all/holonometria/Holonometria.kt +++ b/src/all/holonometria/src/eu/kanade/tachiyomi/extension/all/holonometria/Holonometria.kt @@ -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() } diff --git a/src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt b/src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt index 7e923c167..96cd5eb80 100644 --- a/src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt +++ b/src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt @@ -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 diff --git a/src/all/izneo/src/eu/kanade/tachiyomi/extension/all/izneo/Izneo.kt b/src/all/izneo/src/eu/kanade/tachiyomi/extension/all/izneo/Izneo.kt index 5ed4a9ece..739a8746c 100644 --- a/src/all/izneo/src/eu/kanade/tachiyomi/extension/all/izneo/Izneo.kt +++ b/src/all/izneo/src/eu/kanade/tachiyomi/extension/all/izneo/Izneo.kt @@ -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" diff --git a/src/all/junmeitu/src/eu/kanade/tachiyomi/extension/all/junmeitu/Junmeitu.kt b/src/all/junmeitu/src/eu/kanade/tachiyomi/extension/all/junmeitu/Junmeitu.kt index 779ccdcb1..7a7af01a1 100644 --- a/src/all/junmeitu/src/eu/kanade/tachiyomi/extension/all/junmeitu/Junmeitu.kt +++ b/src/all/junmeitu/src/eu/kanade/tachiyomi/extension/all/junmeitu/Junmeitu.kt @@ -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( diff --git a/src/all/leagueoflegends/src/eu/kanade/tachiyomi/extension/all/leagueoflegends/LOLUniverse.kt b/src/all/leagueoflegends/src/eu/kanade/tachiyomi/extension/all/leagueoflegends/LOLUniverse.kt index 05dec9faf..840b28dee 100644 --- a/src/all/leagueoflegends/src/eu/kanade/tachiyomi/extension/all/leagueoflegends/LOLUniverse.kt +++ b/src/all/leagueoflegends/src/eu/kanade/tachiyomi/extension/all/leagueoflegends/LOLUniverse.kt @@ -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 Response.decode() = json.decodeFromString(body.string()) diff --git a/src/all/littlegarden/src/eu/kanade/tachiyomi/extension/all/littlegarden/LittleGarden.kt b/src/all/littlegarden/src/eu/kanade/tachiyomi/extension/all/littlegarden/LittleGarden.kt index 010a48d9e..fc1e807bd 100644 --- a/src/all/littlegarden/src/eu/kanade/tachiyomi/extension/all/littlegarden/LittleGarden.kt +++ b/src/all/littlegarden/src/eu/kanade/tachiyomi/extension/all/littlegarden/LittleGarden.kt @@ -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 { 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() } diff --git a/src/all/luscious/src/eu/kanade/tachiyomi/extension/all/luscious/Luscious.kt b/src/all/luscious/src/eu/kanade/tachiyomi/extension/all/luscious/Luscious.kt index ec50fb756..6683505bb 100644 --- a/src/all/luscious/src/eu/kanade/tachiyomi/extension/all/luscious/Luscious.kt +++ b/src/all/luscious/src/eu/kanade/tachiyomi/extension/all/luscious/Luscious.kt @@ -314,7 +314,7 @@ abstract class Luscious( return chapters.reversed() } - override fun chapterListParse(response: Response): List = throw UnsupportedOperationException("Not used") + override fun chapterListParse(response: Response): List = throw UnsupportedOperationException() // Pages @@ -394,9 +394,9 @@ abstract class Luscious( } } - override fun pageListParse(response: Response): List = throw UnsupportedOperationException("Not used") + override fun pageListParse(response: Response): List = 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 { 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 diff --git a/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt b/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt index affd6491d..13c3d437b 100644 --- a/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt +++ b/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaPark.kt @@ -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 { diff --git a/src/all/mangaup/src/eu/kanade/tachiyomi/extension/all/mangaup/MangaUp.kt b/src/all/mangaup/src/eu/kanade/tachiyomi/extension/all/mangaup/MangaUp.kt index d79ec194e..16d85b1fb 100644 --- a/src/all/mangaup/src/eu/kanade/tachiyomi/extension/all/mangaup/MangaUp.kt +++ b/src/all/mangaup/src/eu/kanade/tachiyomi/extension/all/mangaup/MangaUp.kt @@ -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)) { diff --git a/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt b/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt index 93551ae39..92d7f2291 100644 --- a/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt +++ b/src/all/mango/src/eu/kanade/tachiyomi/extension/all/mango/Mango.kt @@ -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> { @@ -194,7 +194,7 @@ class Mango : ConfigurableSource, UnmeteredSource, HttpSource() { // Stub override fun pageListParse(response: Response): List = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun imageUrlParse(response: Response): String = "" override fun getFilterList(): FilterList = FilterList() diff --git a/src/all/meituatop/src/eu/kanade/tachiyomi/extension/all/meituatop/MeituaTop.kt b/src/all/meituatop/src/eu/kanade/tachiyomi/extension/all/meituatop/MeituaTop.kt index 3f1d6f91f..79134b07e 100644 --- a/src/all/meituatop/src/eu/kanade/tachiyomi/extension/all/meituatop/MeituaTop.kt +++ b/src/all/meituatop/src/eu/kanade/tachiyomi/extension/all/meituatop/MeituaTop.kt @@ -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 = 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> { 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 { 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)"), diff --git a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt index 6cae87895..513b5b9a2 100644 --- a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt +++ b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt @@ -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 diff --git a/src/all/netcomics/src/eu/kanade/tachiyomi/extension/all/netcomics/Netcomics.kt b/src/all/netcomics/src/eu/kanade/tachiyomi/extension/all/netcomics/Netcomics.kt index a8b761cd2..d19a7d527 100644 --- a/src/all/netcomics/src/eu/kanade/tachiyomi/extension/all/netcomics/Netcomics.kt +++ b/src/all/netcomics/src/eu/kanade/tachiyomi/extension/all/netcomics/Netcomics.kt @@ -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('|') diff --git a/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt b/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt index 3359c3826..b953b3e99 100644 --- a/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt +++ b/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt @@ -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 { 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) diff --git a/src/all/ninenineninehentai/src/eu/kanade/tachiyomi/extension/all/ninenineninehentai/NineNineNineHentai.kt b/src/all/ninenineninehentai/src/eu/kanade/tachiyomi/extension/all/ninenineninehentai/NineNineNineHentai.kt index cda524c45..7f998f251 100644 --- a/src/all/ninenineninehentai/src/eu/kanade/tachiyomi/extension/all/ninenineninehentai/NineNineNineHentai.kt +++ b/src/all/ninenineninehentai/src/eu/kanade/tachiyomi/extension/all/ninenineninehentai/NineNineNineHentai.kt @@ -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 diff --git a/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseManga.kt b/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseManga.kt index aa6be71c9..eb659c4e3 100644 --- a/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseManga.kt +++ b/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseManga.kt @@ -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" diff --git a/src/all/photos18/src/eu/kanade/tachiyomi/extension/all/photos18/Photos18.kt b/src/all/photos18/src/eu/kanade/tachiyomi/extension/all/photos18/Photos18.kt index 2b94cf136..63c504611 100644 --- a/src/all/photos18/src/eu/kanade/tachiyomi/extension/all/photos18/Photos18.kt +++ b/src/all/photos18/src/eu/kanade/tachiyomi/extension/all/photos18/Photos18.kt @@ -83,7 +83,7 @@ class Photos18 : HttpSource(), ConfigurableSource { override fun fetchMangaDetails(manga: SManga): Observable = 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> { 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 { 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(), diff --git a/src/all/pixiv/src/eu/kanade/tachiyomi/extension/all/pixiv/Pixiv.kt b/src/all/pixiv/src/eu/kanade/tachiyomi/extension/all/pixiv/Pixiv.kt index 8e2108551..e2b8825ed 100644 --- a/src/all/pixiv/src/eu/kanade/tachiyomi/extension/all/pixiv/Pixiv.kt +++ b/src/all/pixiv/src/eu/kanade/tachiyomi/extension/all/pixiv/Pixiv.kt @@ -370,32 +370,32 @@ class Pixiv(override val lang: String) : HttpSource() { } override fun chapterListParse(response: Response): List = - 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 = - 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() } diff --git a/src/all/sandraandwoo/src/eu/kanade/tachiyomi/extension/all/sandraandwoo/SandraAndWoo.kt b/src/all/sandraandwoo/src/eu/kanade/tachiyomi/extension/all/sandraandwoo/SandraAndWoo.kt index 2a8032733..fb2225636 100644 --- a/src/all/sandraandwoo/src/eu/kanade/tachiyomi/extension/all/sandraandwoo/SandraAndWoo.kt +++ b/src/all/sandraandwoo/src/eu/kanade/tachiyomi/extension/all/sandraandwoo/SandraAndWoo.kt @@ -106,33 +106,33 @@ abstract class SandraAndWoo( override fun mangaDetailsParse(document: Document) = manga // - 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() // private fun String.timestamp() = DATE_FORMAT.parse(this)?.time ?: 0L diff --git a/src/all/simplycosplay/src/eu/kanade/tachiyomi/extension/all/simplycosplay/SimplyCosplay.kt b/src/all/simplycosplay/src/eu/kanade/tachiyomi/extension/all/simplycosplay/SimplyCosplay.kt index 9736f2861..d2c1868fb 100644 --- a/src/all/simplycosplay/src/eu/kanade/tachiyomi/extension/all/simplycosplay/SimplyCosplay.kt +++ b/src/all/simplycosplay/src/eu/kanade/tachiyomi/extension/all/simplycosplay/SimplyCosplay.kt @@ -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() } diff --git a/src/all/simplyhentai/src/eu/kanade/tachiyomi/extension/all/simplyhentai/SimplyHentai.kt b/src/all/simplyhentai/src/eu/kanade/tachiyomi/extension/all/simplyhentai/SimplyHentai.kt index 195c7c1ff..1000d8130 100644 --- a/src/all/simplyhentai/src/eu/kanade/tachiyomi/extension/all/simplyhentai/SimplyHentai.kt +++ b/src/all/simplyhentai/src/eu/kanade/tachiyomi/extension/all/simplyhentai/SimplyHentai.kt @@ -219,7 +219,7 @@ open class SimplyHentai(override val lang: String) : ConfigurableSource, HttpSou json.decodeFromString(body.string()) override fun imageUrlParse(response: Response) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() companion object { private val dateFormat = diff --git a/src/all/taddyink/src/eu/kanade/tachiyomi/extension/all/taddyink/TaddyInk.kt b/src/all/taddyink/src/eu/kanade/tachiyomi/extension/all/taddyink/TaddyInk.kt index d8e66548d..e1b9d77b1 100644 --- a/src/all/taddyink/src/eu/kanade/tachiyomi/extension/all/taddyink/TaddyInk.kt +++ b/src/all/taddyink/src/eu/kanade/tachiyomi/extension/all/taddyink/TaddyInk.kt @@ -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() diff --git a/src/all/tappytoon/src/eu/kanade/tachiyomi/extension/all/tappytoon/Tappytoon.kt b/src/all/tappytoon/src/eu/kanade/tachiyomi/extension/all/tappytoon/Tappytoon.kt index 28a59a274..6e5f5d07d 100644 --- a/src/all/tappytoon/src/eu/kanade/tachiyomi/extension/all/tappytoon/Tappytoon.kt +++ b/src/all/tappytoon/src/eu/kanade/tachiyomi/extension/all/tappytoon/Tappytoon.kt @@ -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" diff --git a/src/all/thelibraryofohara/src/eu/kanade/tachiyomi/extension/all/thelibraryofohara/TheLibraryOfOhara.kt b/src/all/thelibraryofohara/src/eu/kanade/tachiyomi/extension/all/thelibraryofohara/TheLibraryOfOhara.kt index 2d2207482..5c08eef93 100644 --- a/src/all/thelibraryofohara/src/eu/kanade/tachiyomi/extension/all/thelibraryofohara/TheLibraryOfOhara.kt +++ b/src/all/thelibraryofohara/src/eu/kanade/tachiyomi/extension/all/thelibraryofohara/TheLibraryOfOhara.kt @@ -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() } diff --git a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt index 3c306b163..0adea603b 100644 --- a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt +++ b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt @@ -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() diff --git a/src/all/vinnieVeritas/src/eu/kanade/tachiyomi/extension/all/vinnieVeritas/vinnieVeritas.kt b/src/all/vinnieVeritas/src/eu/kanade/tachiyomi/extension/all/vinnieVeritas/vinnieVeritas.kt index dd3542c1f..dbef052c9 100644 --- a/src/all/vinnieVeritas/src/eu/kanade/tachiyomi/extension/all/vinnieVeritas/vinnieVeritas.kt +++ b/src/all/vinnieVeritas/src/eu/kanade/tachiyomi/extension/all/vinnieVeritas/vinnieVeritas.kt @@ -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 = throw Exception("Not used") + override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = 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() } diff --git a/src/all/xinmeitulu/src/eu/kanade/tachiyomi/extension/all/xinmeitulu/Xinmeitulu.kt b/src/all/xinmeitulu/src/eu/kanade/tachiyomi/extension/all/xinmeitulu/Xinmeitulu.kt index 564875487..bc346e847 100644 --- a/src/all/xinmeitulu/src/eu/kanade/tachiyomi/extension/all/xinmeitulu/Xinmeitulu.kt +++ b/src/all/xinmeitulu/src/eu/kanade/tachiyomi/extension/all/xinmeitulu/Xinmeitulu.kt @@ -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 { diff --git a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/Xkcd.kt b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/Xkcd.kt index d3668bb44..aa071e384 100644 --- a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/Xkcd.kt +++ b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/Xkcd.kt @@ -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 = diff --git a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdES.kt b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdES.kt index 72a1a4507..59d325331 100644 --- a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdES.kt +++ b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdES.kt @@ -31,5 +31,5 @@ class XkcdES : Xkcd("https://es.xkcd.com", "es") { } override fun String.numbered(number: Any) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() } diff --git a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdFR.kt b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdFR.kt index 8d0015145..3f89df09e 100644 --- a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdFR.kt +++ b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdFR.kt @@ -42,5 +42,5 @@ class XkcdFR : Xkcd("https://xkcd.lapin.org", "fr") { } override val interactiveText: String - get() = throw UnsupportedOperationException("Not used") + get() = throw UnsupportedOperationException() } diff --git a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdRU.kt b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdRU.kt index 1f1d1f8d7..cc2546ede 100644 --- a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdRU.kt +++ b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdRU.kt @@ -44,5 +44,5 @@ class XkcdRU : Xkcd("https://xkcd.ru", "ru") { } override val interactiveText: String - get() = throw UnsupportedOperationException("Not used") + get() = throw UnsupportedOperationException() } diff --git a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdZH.kt b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdZH.kt index 8cea92024..9f0ff82e2 100644 --- a/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdZH.kt +++ b/src/all/xkcd/src/eu/kanade/tachiyomi/extension/all/xkcd/translations/XkcdZH.kt @@ -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() } diff --git a/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt b/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt index 5a07c56e9..fa8e0276e 100644 --- a/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt +++ b/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt @@ -103,7 +103,7 @@ class YaoiMangaOnline : ParsedHttpSource() { } override fun imageUrlParse(document: Document) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun getFilterList() = FilterList(CategoryFilter(), TagFilter()) diff --git a/src/ar/gmanga/src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt b/src/ar/gmanga/src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt index 5d56b4804..838e4bc2a 100644 --- a/src/ar/gmanga/src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt +++ b/src/ar/gmanga/src/eu/kanade/tachiyomi/extension/ar/gmanga/Gmanga.kt @@ -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)) { diff --git a/src/ar/mangaae/src/eu/kanade/tachiyomi/extension/ar/mangaae/MangaAe.kt b/src/ar/mangaae/src/eu/kanade/tachiyomi/extension/ar/mangaae/MangaAe.kt index 919327f1f..8d3b7de42 100644 --- a/src/ar/mangaae/src/eu/kanade/tachiyomi/extension/ar/mangaae/MangaAe.kt +++ b/src/ar/mangaae/src/eu/kanade/tachiyomi/extension/ar/mangaae/MangaAe.kt @@ -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>) : diff --git a/src/ar/shqqaa/src/eu/kanade/tachiyomi/extension/ar/shqqaa/Shqqaa.kt b/src/ar/shqqaa/src/eu/kanade/tachiyomi/extension/ar/shqqaa/Shqqaa.kt index 442e79fda..41f1c0f6b 100644 --- a/src/ar/shqqaa/src/eu/kanade/tachiyomi/extension/ar/shqqaa/Shqqaa.kt +++ b/src/ar/shqqaa/src/eu/kanade/tachiyomi/extension/ar/shqqaa/Shqqaa.kt @@ -67,13 +67,13 @@ class Shqqaa : ParsedHttpSource() { override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = 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() } diff --git a/src/ar/teamx/src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt b/src/ar/teamx/src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt index 622554ef7..47f8d86a0 100644 --- a/src/ar/teamx/src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt +++ b/src/ar/teamx/src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt @@ -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() } diff --git a/src/de/mangatube/src/eu/kanade/tachiyomi/extension/de/mangatube/MangaTube.kt b/src/de/mangatube/src/eu/kanade/tachiyomi/extension/de/mangatube/MangaTube.kt index 806236d9b..a79fc2f35 100644 --- a/src/de/mangatube/src/eu/kanade/tachiyomi/extension/de/mangatube/MangaTube.kt +++ b/src/de/mangatube/src/eu/kanade/tachiyomi/extension/de/mangatube/MangaTube.kt @@ -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() } diff --git a/src/en/MangaRok/src/eu/kanade/tachiyomi/extension/en/mangarok/MangaRok.kt b/src/en/MangaRok/src/eu/kanade/tachiyomi/extension/en/mangarok/MangaRok.kt index 54259c522..df09b39a3 100644 --- a/src/en/MangaRok/src/eu/kanade/tachiyomi/extension/en/mangarok/MangaRok.kt +++ b/src/en/MangaRok/src/eu/kanade/tachiyomi/extension/en/mangarok/MangaRok.kt @@ -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() diff --git a/src/en/allanime/src/eu/kanade/tachiyomi/extension/en/allanime/AllAnime.kt b/src/en/allanime/src/eu/kanade/tachiyomi/extension/en/allanime/AllAnime.kt index 97e530a5a..a988e10e4 100644 --- a/src/en/allanime/src/eu/kanade/tachiyomi/extension/en/allanime/AllAnime.kt +++ b/src/en/allanime/src/eu/kanade/tachiyomi/extension/en/allanime/AllAnime.kt @@ -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) { diff --git a/src/en/anchira/src/eu/kanade/tachiyomi/extension/en/anchira/Anchira.kt b/src/en/anchira/src/eu/kanade/tachiyomi/extension/en/anchira/Anchira.kt index e7f777f39..c22393d64 100644 --- a/src/en/anchira/src/eu/kanade/tachiyomi/extension/en/anchira/Anchira.kt +++ b/src/en/anchira/src/eu/kanade/tachiyomi/extension/en/anchira/Anchira.kt @@ -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 diff --git a/src/en/apairof2/src/eu/kanade/tachiyomi/extension/en/apairof2/APairOf2.kt b/src/en/apairof2/src/eu/kanade/tachiyomi/extension/en/apairof2/APairOf2.kt index 0d736289b..9b8aa149e 100644 --- a/src/en/apairof2/src/eu/kanade/tachiyomi/extension/en/apairof2/APairOf2.kt +++ b/src/en/apairof2/src/eu/kanade/tachiyomi/extension/en/apairof2/APairOf2.kt @@ -154,7 +154,7 @@ class APairOf2 : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String { - throw UnsupportedOperationException("not used") + throw UnsupportedOperationException() } companion object { diff --git a/src/en/aurora/src/eu/kanade/tachiyomi/extension/en/aurora/Aurora.kt b/src/en/aurora/src/eu/kanade/tachiyomi/extension/en/aurora/Aurora.kt index b641705f0..3e53e12e9 100644 --- a/src/en/aurora/src/eu/kanade/tachiyomi/extension/en/aurora/Aurora.kt +++ b/src/en/aurora/src/eu/kanade/tachiyomi/extension/en/aurora/Aurora.kt @@ -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 = throw Exception("Not used") + override fun chapterListParse(response: Response): List = throw UnsupportedOperationException() override fun fetchChapterList(manga: SManga): Observable> { 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 { val chapterNr = manga.title.substringAfter(' ').toFloatOrNull() ?: 0f @@ -113,7 +113,7 @@ class Aurora : HttpSource() { Find Red’s 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> { 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 = throw Exception("Not used") + override fun pageListParse(response: Response): List = 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 = throw Exception("Not used") + override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = 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() } diff --git a/src/en/buttsmithy/src/eu/kanade/tachiyomi/extension/en/buttsmithy/Buttsmithy.kt b/src/en/buttsmithy/src/eu/kanade/tachiyomi/extension/en/buttsmithy/Buttsmithy.kt index a3043b18a..2860e81ab 100644 --- a/src/en/buttsmithy/src/eu/kanade/tachiyomi/extension/en/buttsmithy/Buttsmithy.kt +++ b/src/en/buttsmithy/src/eu/kanade/tachiyomi/extension/en/buttsmithy/Buttsmithy.kt @@ -263,16 +263,16 @@ class Buttsmithy : HttpSource() { return MangasPage(fetchAllComics(), false) } - override fun chapterListParse(response: Response): List = throw Exception("Not used") + override fun chapterListParse(response: Response): List = 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 { 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> { 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 = throw Exception("Not used") + override fun pageListParse(response: Response): List = throw UnsupportedOperationException() override fun fetchPopularManga(page: Int): Observable { 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() } diff --git a/src/en/clonemanga/src/eu/kanade/tachiyomi/extension/en/clonemanga/CloneManga.kt b/src/en/clonemanga/src/eu/kanade/tachiyomi/extension/en/clonemanga/CloneManga.kt index 84a1d17c3..23785cb0a 100644 --- a/src/en/clonemanga/src/eu/kanade/tachiyomi/extension/en/clonemanga/CloneManga.kt +++ b/src/en/clonemanga/src/eu/kanade/tachiyomi/extension/en/clonemanga/CloneManga.kt @@ -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 { 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") } } diff --git a/src/en/cloudrecess/src/eu/kanade/tachiyomi/extension/en/cloudrecess/CloudRecess.kt b/src/en/cloudrecess/src/eu/kanade/tachiyomi/extension/en/cloudrecess/CloudRecess.kt index 52af9e3a8..7a3a3d558 100644 --- a/src/en/cloudrecess/src/eu/kanade/tachiyomi/extension/en/cloudrecess/CloudRecess.kt +++ b/src/en/cloudrecess/src/eu/kanade/tachiyomi/extension/en/cloudrecess/CloudRecess.kt @@ -166,7 +166,7 @@ class CloudRecess : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String { - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() } companion object { diff --git a/src/en/collectedcurios/src/eu/kanade/tachiyomi/extension/en/collectedcurios/Collectedcurios.kt b/src/en/collectedcurios/src/eu/kanade/tachiyomi/extension/en/collectedcurios/Collectedcurios.kt index 982d78dd3..3fcc5e743 100644 --- a/src/en/collectedcurios/src/eu/kanade/tachiyomi/extension/en/collectedcurios/Collectedcurios.kt +++ b/src/en/collectedcurios/src/eu/kanade/tachiyomi/extension/en/collectedcurios/Collectedcurios.kt @@ -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 = throw Exception("Not used") + override fun pageListParse(document: Document): List = 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() } diff --git a/src/en/comicastle/src/eu/kanade/tachiyomi/extension/en/comicastle/Comicastle.kt b/src/en/comicastle/src/eu/kanade/tachiyomi/extension/en/comicastle/Comicastle.kt index 275d50e2b..c5fd38279 100644 --- a/src/en/comicastle/src/eu/kanade/tachiyomi/extension/en/comicastle/Comicastle.kt +++ b/src/en/comicastle/src/eu/kanade/tachiyomi/extension/en/comicastle/Comicastle.kt @@ -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 diff --git a/src/en/comicextra/src/eu/kanade/tachiyomi/extension/en/comicextra/ComicExtra.kt b/src/en/comicextra/src/eu/kanade/tachiyomi/extension/en/comicextra/ComicExtra.kt index ee5882891..d8494d4a0 100644 --- a/src/en/comicextra/src/eu/kanade/tachiyomi/extension/en/comicextra/ComicExtra.kt +++ b/src/en/comicextra/src/eu/kanade/tachiyomi/extension/en/comicextra/ComicExtra.kt @@ -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 diff --git a/src/en/darklegacycomics/src/eu/kanade/tachiyomi/extension/en/darklegacycomics/DarkLegacyComics.kt b/src/en/darklegacycomics/src/eu/kanade/tachiyomi/extension/en/darklegacycomics/DarkLegacyComics.kt index 037503665..643a22f98 100644 --- a/src/en/darklegacycomics/src/eu/kanade/tachiyomi/extension/en/darklegacycomics/DarkLegacyComics.kt +++ b/src/en/darklegacycomics/src/eu/kanade/tachiyomi/extension/en/darklegacycomics/DarkLegacyComics.kt @@ -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" diff --git a/src/en/disasterscans/src/eu/kanade/tachiyomi/extension/en/disasterscans/DisasterScans.kt b/src/en/disasterscans/src/eu/kanade/tachiyomi/extension/en/disasterscans/DisasterScans.kt index 5ae784f62..393d16466 100644 --- a/src/en/disasterscans/src/eu/kanade/tachiyomi/extension/en/disasterscans/DisasterScans.kt +++ b/src/en/disasterscans/src/eu/kanade/tachiyomi/extension/en/disasterscans/DisasterScans.kt @@ -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() } diff --git a/src/en/doujins/src/eu/kanade/tachiyomi/extension/en/doujins/Doujins.kt b/src/en/doujins/src/eu/kanade/tachiyomi/extension/en/doujins/Doujins.kt index dd3e85a47..081098fe6 100644 --- a/src/en/doujins/src/eu/kanade/tachiyomi/extension/en/doujins/Doujins.kt +++ b/src/en/doujins/src/eu/kanade/tachiyomi/extension/en/doujins/Doujins.kt @@ -60,7 +60,7 @@ class Doujins : HttpSource() { ) } - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() override fun latestUpdatesParse(response: Response): MangasPage { return MangasPage( diff --git a/src/en/earlymanga/src/eu/kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt b/src/en/earlymanga/src/eu/kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt index 59903bb9d..a9c623947 100644 --- a/src/en/earlymanga/src/eu/kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt +++ b/src/en/earlymanga/src/eu/kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt @@ -196,5 +196,5 @@ class EarlyManga : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() } diff --git a/src/en/eggporncomics/src/eu/kanade/tachiyomi/extension/en/eggporncomics/Eggporncomics.kt b/src/en/eggporncomics/src/eu/kanade/tachiyomi/extension/en/eggporncomics/Eggporncomics.kt index 1074f0060..a51f2e9af 100644 --- a/src/en/eggporncomics/src/eu/kanade/tachiyomi/extension/en/eggporncomics/Eggporncomics.kt +++ b/src/en/eggporncomics/src/eu/kanade/tachiyomi/extension/en/eggporncomics/Eggporncomics.kt @@ -148,9 +148,9 @@ class Eggporncomics : ParsedHttpSource() { ) } - override fun chapterListSelector() = throw UnsupportedOperationException("Not used") + override fun chapterListSelector() = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() // Pages @@ -164,7 +164,7 @@ class Eggporncomics : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Filters diff --git a/src/en/elanschool/src/eu/kanade/tachiyomi/extension/en/elanschool/ElanSchool.kt b/src/en/elanschool/src/eu/kanade/tachiyomi/extension/en/elanschool/ElanSchool.kt index 6aa1043bc..67ec36465 100644 --- a/src/en/elanschool/src/eu/kanade/tachiyomi/extension/en/elanschool/ElanSchool.kt +++ b/src/en/elanschool/src/eu/kanade/tachiyomi/extension/en/elanschool/ElanSchool.kt @@ -86,26 +86,26 @@ class ElanSchool : 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() } diff --git a/src/en/existentialcomics/src/eu/kanade/tachiyomi/extension/en/existentialcomics/ExistentialComics.kt b/src/en/existentialcomics/src/eu/kanade/tachiyomi/extension/en/existentialcomics/ExistentialComics.kt index 1b8e8c5e1..6cfccca1c 100644 --- a/src/en/existentialcomics/src/eu/kanade/tachiyomi/extension/en/existentialcomics/ExistentialComics.kt +++ b/src/en/existentialcomics/src/eu/kanade/tachiyomi/extension/en/existentialcomics/ExistentialComics.kt @@ -56,31 +56,31 @@ class ExistentialComics : ParsedHttpSource() { override fun pageListParse(document: Document) = document.select(".comicImg").mapIndexed { i, element -> Page(i, "", "https:" + element.attr("src").substring(1)) } - 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() } diff --git a/src/en/explosm/src/eu/kanade/tachiyomi/extension/en/explosm/Explosm.kt b/src/en/explosm/src/eu/kanade/tachiyomi/extension/en/explosm/Explosm.kt index 1c73c628c..9c42a2b96 100644 --- a/src/en/explosm/src/eu/kanade/tachiyomi/extension/en/explosm/Explosm.kt +++ b/src/en/explosm/src/eu/kanade/tachiyomi/extension/en/explosm/Explosm.kt @@ -52,17 +52,17 @@ class Explosm : HttpSource() { // Latest - 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 override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = Observable.just(MangasPage(emptyList(), false)) - 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 @@ -104,7 +104,7 @@ class Explosm : HttpSource() { return Observable.just(listOf(Page(0, baseUrl + chapter.url))) } - override fun pageListParse(response: Response): List = throw UnsupportedOperationException("Not used") + override fun pageListParse(response: Response): List = throw UnsupportedOperationException() override fun imageUrlParse(response: Response): String { return response.asJsoup().select("div#comic-wrap img").attr("abs:src") diff --git a/src/en/grrlpower/src/eu/kanade/tachiyomi/extension/en/grrlpower/GrrlPower.kt b/src/en/grrlpower/src/eu/kanade/tachiyomi/extension/en/grrlpower/GrrlPower.kt index ddda5d2c7..eeb04b474 100644 --- a/src/en/grrlpower/src/eu/kanade/tachiyomi/extension/en/grrlpower/GrrlPower.kt +++ b/src/en/grrlpower/src/eu/kanade/tachiyomi/extension/en/grrlpower/GrrlPower.kt @@ -147,19 +147,19 @@ class GrrlPower( override fun fetchMangaDetails(manga: SManga): Observable = Observable.just(manga) 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() 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 popularMangaParse(response: Response): MangasPage = - throw UnsupportedOperationException("Not Used") + throw UnsupportedOperationException() } diff --git a/src/en/gunnerkriggcourt/src/eu/kanade/tachiyomi/extension/en/gunnerkriggcourt/GunnerkriggCourt.kt b/src/en/gunnerkriggcourt/src/eu/kanade/tachiyomi/extension/en/gunnerkriggcourt/GunnerkriggCourt.kt index 7f5602fb0..d7b9671e5 100644 --- a/src/en/gunnerkriggcourt/src/eu/kanade/tachiyomi/extension/en/gunnerkriggcourt/GunnerkriggCourt.kt +++ b/src/en/gunnerkriggcourt/src/eu/kanade/tachiyomi/extension/en/gunnerkriggcourt/GunnerkriggCourt.kt @@ -66,32 +66,32 @@ class GunnerkriggCourt : ParsedHttpSource() { document.select(".comic_image").mapIndexed { i, element -> Page(i, "", baseUrl + element.attr("src")) } // - override fun imageUrlParse(document: Document): String = throw Exception("Not Used") + override fun imageUrlParse(document: Document): String = 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() // } diff --git a/src/en/gwtb/src/eu/kanade/tachiyomi/extension/en/gwtb/GWTB.kt b/src/en/gwtb/src/eu/kanade/tachiyomi/extension/en/gwtb/GWTB.kt index b4cef53c9..87956bd47 100644 --- a/src/en/gwtb/src/eu/kanade/tachiyomi/extension/en/gwtb/GWTB.kt +++ b/src/en/gwtb/src/eu/kanade/tachiyomi/extension/en/gwtb/GWTB.kt @@ -48,26 +48,26 @@ class GWTB : HttpSource() { Observable.just(manga.apply { initialized = true }) 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() } diff --git a/src/en/hentai2read/src/eu/kanade/tachiyomi/extension/en/hentai2read/Hentai2Read.kt b/src/en/hentai2read/src/eu/kanade/tachiyomi/extension/en/hentai2read/Hentai2Read.kt index 4471d6087..88938125f 100644 --- a/src/en/hentai2read/src/eu/kanade/tachiyomi/extension/en/hentai2read/Hentai2Read.kt +++ b/src/en/hentai2read/src/eu/kanade/tachiyomi/extension/en/hentai2read/Hentai2Read.kt @@ -143,7 +143,7 @@ class Hentai2Read : ParsedHttpSource() { return MangasPage(mangas, hasNextPage) } - 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() = popularMangaSelector() @@ -260,9 +260,9 @@ class Hentai2Read : ParsedHttpSource() { return pages } - override fun pageListParse(document: Document): List = throw Exception("Not used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() - override fun imageUrlParse(document: Document) = throw Exception("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() private class MangaNameSelect : Filter.Select("Manga Name", arrayOf("Contains", "Starts With", "Ends With")) private class ArtistName : Filter.Text("Artist") diff --git a/src/en/hentaidexy/src/eu/kanade/tachiyomi/extension/en/hentaidexy/Hentaidexy.kt b/src/en/hentaidexy/src/eu/kanade/tachiyomi/extension/en/hentaidexy/Hentaidexy.kt index ac7cefad8..d8333f2ef 100644 --- a/src/en/hentaidexy/src/eu/kanade/tachiyomi/extension/en/hentaidexy/Hentaidexy.kt +++ b/src/en/hentaidexy/src/eu/kanade/tachiyomi/extension/en/hentaidexy/Hentaidexy.kt @@ -158,7 +158,7 @@ class Hentaidexy : HttpSource() { // unused override fun imageUrlParse(response: Response): String { - throw UnsupportedOperationException("Not Used") + throw UnsupportedOperationException() } // Helpers diff --git a/src/en/hentaifox/src/eu/kanade/tachiyomi/extension/en/hentaifox/HentaiFox.kt b/src/en/hentaifox/src/eu/kanade/tachiyomi/extension/en/hentaifox/HentaiFox.kt index 2b07eb4bb..b0fb34677 100644 --- a/src/en/hentaifox/src/eu/kanade/tachiyomi/extension/en/hentaifox/HentaiFox.kt +++ b/src/en/hentaifox/src/eu/kanade/tachiyomi/extension/en/hentaifox/HentaiFox.kt @@ -54,15 +54,15 @@ class HentaiFox : ParsedHttpSource() { // Latest - 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 latestUpdatesSelector() = throw UnsupportedOperationException("Not used") + override fun latestUpdatesSelector() = throw UnsupportedOperationException() - override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") + override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException() - override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not used") + override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException() // Search @@ -123,9 +123,9 @@ class HentaiFox : ParsedHttpSource() { ) } - override fun chapterListSelector() = throw UnsupportedOperationException("Not used") + override fun chapterListSelector() = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() // Pages @@ -140,7 +140,7 @@ class HentaiFox : ParsedHttpSource() { return document.select("img#gimg").attr("abs:data-src") } - override fun pageListParse(document: Document): List = throw UnsupportedOperationException("Not used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() // Filters diff --git a/src/en/hentaihere/src/eu/kanade/tachiyomi/extension/en/hentaihere/HentaiHere.kt b/src/en/hentaihere/src/eu/kanade/tachiyomi/extension/en/hentaihere/HentaiHere.kt index 60655ea52..1d8d26f26 100644 --- a/src/en/hentaihere/src/eu/kanade/tachiyomi/extension/en/hentaihere/HentaiHere.kt +++ b/src/en/hentaihere/src/eu/kanade/tachiyomi/extension/en/hentaihere/HentaiHere.kt @@ -206,10 +206,10 @@ class HentaiHere : ParsedHttpSource() { } override fun pageListParse(document: Document): List = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() override fun imageUrlParse(document: Document) = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() // Filters override fun getFilterList(): FilterList { diff --git a/src/en/hiveworks/src/eu/kanade/tachiyomi/extension/en/hiveworks/Hiveworks.kt b/src/en/hiveworks/src/eu/kanade/tachiyomi/extension/en/hiveworks/Hiveworks.kt index a724b78c1..2cf16c058 100644 --- a/src/en/hiveworks/src/eu/kanade/tachiyomi/extension/en/hiveworks/Hiveworks.kt +++ b/src/en/hiveworks/src/eu/kanade/tachiyomi/extension/en/hiveworks/Hiveworks.kt @@ -165,7 +165,7 @@ class Hiveworks : ParsedHttpSource() { } override fun mangaDetailsRequest(manga: SManga) = GET(manga.url, headers) // Used to open proper page in webview - override fun mangaDetailsParse(document: Document): SManga = throw Exception("Not Used") + override fun mangaDetailsParse(document: Document): SManga = throw UnsupportedOperationException() private fun mangaDetailsParse(response: Response, url: String): SManga { val document = response.asJsoup() return document.select(popularMangaSelector()) @@ -230,7 +230,7 @@ class Hiveworks : ParsedHttpSource() { date_upload = parseDate(element.text().substringBefore("-").trim(), DATE_FORMATTER) } - override fun chapterFromElement(element: Element) = throw Exception("Not Used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() // Pages @@ -261,9 +261,9 @@ class Hiveworks : ParsedHttpSource() { return pages } - override fun pageListParse(document: Document): List = throw Exception("Not used, see pageListParse(response)") - override fun imageUrlRequest(page: Page) = throw Exception("Not used") - override fun imageUrlParse(document: Document) = throw Exception("Not used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() + override fun imageUrlRequest(page: Page) = throw UnsupportedOperationException() + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() // Filters diff --git a/src/en/honkaiimpact3/src/eu/kanade/tachiyomi/extension/en/honkaiimpact/Honkaiimpact.kt b/src/en/honkaiimpact3/src/eu/kanade/tachiyomi/extension/en/honkaiimpact/Honkaiimpact.kt index 55cf861aa..cc2ad826d 100644 --- a/src/en/honkaiimpact3/src/eu/kanade/tachiyomi/extension/en/honkaiimpact/Honkaiimpact.kt +++ b/src/en/honkaiimpact3/src/eu/kanade/tachiyomi/extension/en/honkaiimpact/Honkaiimpact.kt @@ -53,16 +53,16 @@ class Honkaiimpact : ParsedHttpSource() { override fun popularMangaFromElement(element: Element) = mangaFromElement(element) // Latest - override fun latestUpdatesSelector() = throw Exception("Not Used") + override fun latestUpdatesSelector() = throw UnsupportedOperationException() override fun latestUpdatesNextPageSelector(): String? = null - override fun latestUpdatesRequest(page: Int) = throw Exception("Not Used") + override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException() override fun latestUpdatesFromElement(element: Element) = mangaFromElement(element) // Search - override fun searchMangaSelector() = throw Exception("Not Used") + override fun searchMangaSelector() = throw UnsupportedOperationException() override fun searchMangaNextPageSelector(): String? = null @@ -88,9 +88,9 @@ class Honkaiimpact : ParsedHttpSource() { } // Chapters - override fun chapterListSelector() = throw Exception("Not Used") + override fun chapterListSelector() = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element) = throw Exception("Not Used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() override fun chapterListRequest(manga: SManga) = GET(baseUrl + manga.url + "/get_chapter", headers) diff --git a/src/en/infinityscans/src/eu/kanade/tachiyomi/extension/en/infinityscans/InfinityScans.kt b/src/en/infinityscans/src/eu/kanade/tachiyomi/extension/en/infinityscans/InfinityScans.kt index 56fceb1c7..792bad4eb 100644 --- a/src/en/infinityscans/src/eu/kanade/tachiyomi/extension/en/infinityscans/InfinityScans.kt +++ b/src/en/infinityscans/src/eu/kanade/tachiyomi/extension/en/infinityscans/InfinityScans.kt @@ -276,7 +276,7 @@ class InfinityScans : HttpSource() { // Image - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() override fun imageRequest(page: Page): Request { val pageHeaders = headersBuilder().apply { diff --git a/src/en/irovedout/src/eu/kanade/tachiyomi/extension/en/irovedout/IRovedOut.kt b/src/en/irovedout/src/eu/kanade/tachiyomi/extension/en/irovedout/IRovedOut.kt index 92c079696..04a64a32c 100644 --- a/src/en/irovedout/src/eu/kanade/tachiyomi/extension/en/irovedout/IRovedOut.kt +++ b/src/en/irovedout/src/eu/kanade/tachiyomi/extension/en/irovedout/IRovedOut.kt @@ -33,9 +33,9 @@ class IRovedOut : HttpSource() { private val dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.US) private val titleRegex = Regex("Book (?\\d+): (?.+)") - override fun chapterListRequest(manga: SManga): Request = throw Exception("Not used") + override fun chapterListRequest(manga: SManga): Request = throw UnsupportedOperationException() - override fun chapterListParse(response: Response): List = throw Exception("Not used") + override fun chapterListParse(response: Response): List = throw UnsupportedOperationException() override fun fetchChapterList(manga: SManga): Observable> { val mainPage = client.newCall(GET(baseUrl, headers)).execute().asJsoup() @@ -66,17 +66,17 @@ class IRovedOut : HttpSource() { return Observable.just(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 { return Observable.just(manga) } - override fun mangaDetailsParse(response: Response): SManga = throw Exception("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() override fun fetchPageList(chapter: SChapter): Observable> { val match = titleRegex.matchEntire(chapter.name) ?: return Observable.just(listOf()) @@ -91,9 +91,9 @@ class IRovedOut : HttpSource() { return Observable.just(pages) } - override fun pageListRequest(chapter: SChapter): Request = throw Exception("Not used") + override fun pageListRequest(chapter: SChapter): Request = throw UnsupportedOperationException() - override fun pageListParse(response: Response): List = throw Exception("Not used") + override fun pageListParse(response: Response): List = throw UnsupportedOperationException() override fun fetchPopularManga(page: Int): Observable { val manga = SManga.create().apply { @@ -110,13 +110,13 @@ class IRovedOut : HttpSource() { return Observable.just(MangasPage(listOf(manga), false)) } - 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 = throw Exception("Not used") + override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = 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() } diff --git a/src/en/keenspot/src/eu/kanade/tachiyomi/extension/en/keenspot/TwoKinds.kt b/src/en/keenspot/src/eu/kanade/tachiyomi/extension/en/keenspot/TwoKinds.kt index 88822af5e..a8f619b74 100644 --- a/src/en/keenspot/src/eu/kanade/tachiyomi/extension/en/keenspot/TwoKinds.kt +++ b/src/en/keenspot/src/eu/kanade/tachiyomi/extension/en/keenspot/TwoKinds.kt @@ -53,15 +53,15 @@ class TwoKinds : HttpSource() { return Observable.just(MangasPage(listOf(mangaSinglePages(), manga20Pages()), false)) } - override fun popularMangaRequest(page: Int): Request = throw Exception("Not used") + override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException() - override fun popularMangaParse(response: Response): MangasPage = throw Exception("Not used") + override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException() // latest Updates not used - 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() // the manga is one and only, but still write the data again to avoid bugs in backup restore override fun fetchMangaDetails(manga: SManga): Observable { @@ -72,7 +72,7 @@ class TwoKinds : HttpSource() { } } - override fun mangaDetailsParse(response: Response): SManga = throw Exception("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() // chapter list @@ -88,7 +88,7 @@ class TwoKinds : HttpSource() { return GET("$baseUrl/archive/", headers) } - override fun chapterListParse(response: Response): List = throw Exception("Not used") + override fun chapterListParse(response: Response): List = throw UnsupportedOperationException() data class TwoKindsPage(val url: String, val name: String) @@ -162,7 +162,7 @@ class TwoKinds : HttpSource() { } } - override fun pageListParse(response: Response): List = throw Exception("Not used") + override fun pageListParse(response: Response): List = throw UnsupportedOperationException() override fun imageUrlParse(response: Response): String { val document = response.asJsoup() @@ -172,7 +172,7 @@ class TwoKinds : HttpSource() { override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = throw Exception("Search functionality is not available.") - 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() } diff --git a/src/en/killsixbilliondemons/src/eu/kanade/tachiyomi/extension/en/killsixbilliondemons/KillSixBillionDemons.kt b/src/en/killsixbilliondemons/src/eu/kanade/tachiyomi/extension/en/killsixbilliondemons/KillSixBillionDemons.kt index ce9a5c038..5c281b221 100644 --- a/src/en/killsixbilliondemons/src/eu/kanade/tachiyomi/extension/en/killsixbilliondemons/KillSixBillionDemons.kt +++ b/src/en/killsixbilliondemons/src/eu/kanade/tachiyomi/extension/en/killsixbilliondemons/KillSixBillionDemons.kt @@ -113,15 +113,15 @@ class KillSixBillionDemons : HttpSource() { } // latest Updates not used - 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 { return Observable.just(fetchBooksAsMangas().find { manga.title == it.title }) } - override fun mangaDetailsParse(response: Response): SManga = throw Exception("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() override fun fetchChapterList(manga: SManga): Observable> { return Observable.just( @@ -188,9 +188,9 @@ class KillSixBillionDemons : HttpSource() { } } - override fun chapterListRequest(manga: SManga): Request = throw Exception("Not used") + override fun chapterListRequest(manga: SManga): Request = throw UnsupportedOperationException() - override fun chapterListParse(response: Response): List = throw Exception("Not used") + override fun chapterListParse(response: Response): List = throw UnsupportedOperationException() override fun fetchPageList(chapter: SChapter): Observable> { val chapterDoc = client.newCall(GET(baseUrl + chapter.url, headers)).execute().asJsoup() @@ -203,9 +203,9 @@ class KillSixBillionDemons : HttpSource() { return Observable.just(pages) } - override fun imageUrlParse(response: Response): String = throw Exception("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() - override fun pageListParse(response: Response): List = throw Exception("Not used") + override fun pageListParse(response: Response): List = throw UnsupportedOperationException() override fun fetchSearchManga( page: Int, @@ -213,8 +213,8 @@ class KillSixBillionDemons : HttpSource() { filters: FilterList, ): Observable = throw Exception("Search functionality is not available.") - 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() } diff --git a/src/en/kiutaku/src/eu/kanade/tachiyomi/extension/en/kiutaku/Kiutaku.kt b/src/en/kiutaku/src/eu/kanade/tachiyomi/extension/en/kiutaku/Kiutaku.kt index 8a8d0fd04..d0e03273d 100644 --- a/src/en/kiutaku/src/eu/kanade/tachiyomi/extension/en/kiutaku/Kiutaku.kt +++ b/src/en/kiutaku/src/eu/kanade/tachiyomi/extension/en/kiutaku/Kiutaku.kt @@ -118,7 +118,7 @@ class Kiutaku : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String { - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() } companion object { diff --git a/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiWork.kt b/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiWork.kt index 0587fae01..7b132c66e 100644 --- a/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiWork.kt +++ b/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiWork.kt @@ -131,7 +131,7 @@ class KouhaiWork : HttpSource() { ) override fun imageUrlParse(response: Response) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() private fun FilterList.json() = json.encodeToJsonElement( KouhaiTagList( diff --git a/src/en/latisbooks/src/eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt b/src/en/latisbooks/src/eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt index e3cc0517e..9924b67f4 100644 --- a/src/en/latisbooks/src/eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt +++ b/src/en/latisbooks/src/eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt @@ -55,21 +55,21 @@ class Latisbooks : HttpSource() { return (GET("$baseUrl/archive/", headers)) } - override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used") + override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException() // Latest - 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 override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = Observable.just(MangasPage(emptyList(), false)) - 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 @@ -81,7 +81,7 @@ class Latisbooks : HttpSource() { } } - override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() // Chapters @@ -140,7 +140,7 @@ class Latisbooks : HttpSource() { return pages.toList() } - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() override fun getFilterList() = FilterList() } diff --git a/src/en/lemonfont/src/eu/kanade/tachiyomi/extension/en/lemonfont/LemonFont.kt b/src/en/lemonfont/src/eu/kanade/tachiyomi/extension/en/lemonfont/LemonFont.kt index cc2ad1cdd..9d5b249b2 100644 --- a/src/en/lemonfont/src/eu/kanade/tachiyomi/extension/en/lemonfont/LemonFont.kt +++ b/src/en/lemonfont/src/eu/kanade/tachiyomi/extension/en/lemonfont/LemonFont.kt @@ -84,27 +84,27 @@ class LemonFont : ParsedHttpSource() { return Observable.just(MangasPage(emptyList(), false)) } - override fun pageListParse(document: Document): List = throw UnsupportedOperationException("Not Used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() - override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException("Not Used") + override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException() - override fun chapterListSelector() = throw UnsupportedOperationException("Not Used") + override fun chapterListSelector() = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not Used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() - 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 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() } diff --git a/src/en/likemanga/src/eu/kanade/tachiyomi/extension/en/likemanga/LikeManga.kt b/src/en/likemanga/src/eu/kanade/tachiyomi/extension/en/likemanga/LikeManga.kt index ea4104cec..dc6547a11 100644 --- a/src/en/likemanga/src/eu/kanade/tachiyomi/extension/en/likemanga/LikeManga.kt +++ b/src/en/likemanga/src/eu/kanade/tachiyomi/extension/en/likemanga/LikeManga.kt @@ -283,7 +283,7 @@ class LikeManga : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() companion object { val dateFormat by lazy { diff --git a/src/en/loadingartist/src/eu/kanade/tachiyomi/extension/en/loadingartist/LoadingArtist.kt b/src/en/loadingartist/src/eu/kanade/tachiyomi/extension/en/loadingartist/LoadingArtist.kt index c2ad29219..f439900d7 100644 --- a/src/en/loadingartist/src/eu/kanade/tachiyomi/extension/en/loadingartist/LoadingArtist.kt +++ b/src/en/loadingartist/src/eu/kanade/tachiyomi/extension/en/loadingartist/LoadingArtist.kt @@ -60,15 +60,15 @@ class LoadingArtist : HttpSource() { ) } - override fun popularMangaRequest(page: Int): Request = throw Exception("Not used") - override fun popularMangaParse(response: Response): MangasPage = throw Exception("Not used") + override fun popularMangaRequest(page: Int): Request = throw UnsupportedOperationException() + override fun popularMangaParse(response: Response): MangasPage = throw UnsupportedOperationException() // Search override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = throw Exception("Search not available for this source") - override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used") - override fun searchMangaParse(response: Response): MangasPage = throw Exception("Not used") + override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException() + override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException() // Details @@ -76,7 +76,7 @@ class LoadingArtist : HttpSource() { return Observable.just(manga) } - override fun mangaDetailsParse(response: Response): SManga = throw Exception("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() // Chapters @@ -114,8 +114,8 @@ class LoadingArtist : HttpSource() { return listOf(Page(0, response.request.url.toString(), imageUrl)) } - override fun imageUrlParse(response: Response): String = throw Exception("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() - override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used") - override fun latestUpdatesParse(response: Response): MangasPage = throw Exception("Not used") + override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException() + override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException() } diff --git a/src/en/madokami/src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt b/src/en/madokami/src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt index a2a01f50f..f3e8052c4 100644 --- a/src/en/madokami/src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt +++ b/src/en/madokami/src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt @@ -58,9 +58,9 @@ class Madokami : ConfigurableSource, ParsedHttpSource() { }.build() override fun latestUpdatesSelector() = "" - override fun latestUpdatesFromElement(element: Element): SManga = throw Exception("Unsupported!") + override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException() override fun latestUpdatesNextPageSelector(): String? = null - override fun latestUpdatesRequest(page: Int) = throw Exception("Unsupported!") + override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException() override fun popularMangaSelector(): String = "table.mobile-files-table tbody tr td:nth-child(1) a:nth-child(1)" diff --git a/src/en/manga1s/src/eu/kanade/tachiyomi/extension/en/manga1s/manga1s.kt b/src/en/manga1s/src/eu/kanade/tachiyomi/extension/en/manga1s/manga1s.kt index 48e2fdff1..7cd0ab0f7 100644 --- a/src/en/manga1s/src/eu/kanade/tachiyomi/extension/en/manga1s/manga1s.kt +++ b/src/en/manga1s/src/eu/kanade/tachiyomi/extension/en/manga1s/manga1s.kt @@ -198,5 +198,5 @@ class manga1s : ParsedHttpSource() { } override fun imageUrlParse(document: Document) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() } diff --git a/src/en/mangademon/src/eu/kanade/tachiyomi/extension/en/mangademon/MangaDemon.kt b/src/en/mangademon/src/eu/kanade/tachiyomi/extension/en/mangademon/MangaDemon.kt index ae0c98734..e3630838f 100644 --- a/src/en/mangademon/src/eu/kanade/tachiyomi/extension/en/mangademon/MangaDemon.kt +++ b/src/en/mangademon/src/eu/kanade/tachiyomi/extension/en/mangademon/MangaDemon.kt @@ -273,5 +273,5 @@ class MangaDemon : ParsedHttpSource() { .map { it.attr("abs:src") } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() } diff --git a/src/en/mangadoom/src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt b/src/en/mangadoom/src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt index bd7bd3392..843d4b7b5 100644 --- a/src/en/mangadoom/src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt +++ b/src/en/mangadoom/src/eu/kanade/tachiyomi/extension/en/mangadoom/MangaDoom.kt @@ -287,10 +287,10 @@ class MangaDoom : HttpSource() { .map { Page(pageIndex++, it.attr("src"), it.attr("src")) } } - override fun fetchImageUrl(page: Page) = throw UnsupportedOperationException("Not used.") + override fun fetchImageUrl(page: Page) = throw UnsupportedOperationException() override fun imageUrlParse(response: Response) = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() // search /** diff --git a/src/en/mangafox/src/eu/kanade/tachiyomi/extension/en/mangafox/MangaFox.kt b/src/en/mangafox/src/eu/kanade/tachiyomi/extension/en/mangafox/MangaFox.kt index e4a9d0536..13ee2f12f 100644 --- a/src/en/mangafox/src/eu/kanade/tachiyomi/extension/en/mangafox/MangaFox.kt +++ b/src/en/mangafox/src/eu/kanade/tachiyomi/extension/en/mangafox/MangaFox.kt @@ -197,7 +197,7 @@ class MangaFox : ParsedHttpSource() { Page(idx, imageUrl = it.attr("abs:data-original")) } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() private fun parseStatus(status: String) = when { status.contains("Ongoing") -> SManga.ONGOING diff --git a/src/en/mangafreak/src/eu/kanade/tachiyomi/extension/en/mangafreak/Mangafreak.kt b/src/en/mangafreak/src/eu/kanade/tachiyomi/extension/en/mangafreak/Mangafreak.kt index c6c2286e3..acbd19c20 100644 --- a/src/en/mangafreak/src/eu/kanade/tachiyomi/extension/en/mangafreak/Mangafreak.kt +++ b/src/en/mangafreak/src/eu/kanade/tachiyomi/extension/en/mangafreak/Mangafreak.kt @@ -169,7 +169,7 @@ class Mangafreak : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String { - throw Exception("Not Used") + throw UnsupportedOperationException() } // Filter diff --git a/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt b/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt index 71d2afb93..1dab13977 100644 --- a/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt +++ b/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt @@ -243,7 +243,7 @@ class Mangago : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun getFilterList(): FilterList = FilterList( Filter.Header("Ignored if using text search"), diff --git a/src/en/mangahere/src/eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt b/src/en/mangahere/src/eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt index 33ee8f8fe..61d1f6d13 100644 --- a/src/en/mangahere/src/eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt +++ b/src/en/mangahere/src/eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt @@ -322,7 +322,7 @@ class Mangahere : ParsedHttpSource() { return quickJs.evaluate(secretKeyResultScript).toString() } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() private class Genre(title: String, val id: Int) : Filter.TriState(title) diff --git a/src/en/mangajar/src/eu/kanade/tachiyomi/extension/en/mangajar/MangaJar.kt b/src/en/mangajar/src/eu/kanade/tachiyomi/extension/en/mangajar/MangaJar.kt index 9ef23d505..361a9e06e 100644 --- a/src/en/mangajar/src/eu/kanade/tachiyomi/extension/en/mangajar/MangaJar.kt +++ b/src/en/mangajar/src/eu/kanade/tachiyomi/extension/en/mangajar/MangaJar.kt @@ -142,7 +142,7 @@ class MangaJar : ParsedHttpSource() { override fun chapterListSelector() = "li.list-group-item.chapter-item" - override fun chapterFromElement(element: Element) = throw Exception("Not Used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() private fun parseChapterDate(string: String): Long { return if ("ago" in string) { @@ -176,7 +176,7 @@ class MangaJar : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Filters diff --git a/src/en/mangakatana/src/eu/kanade/tachiyomi/extension/en/mangakatana/MangaKatana.kt b/src/en/mangakatana/src/eu/kanade/tachiyomi/extension/en/mangakatana/MangaKatana.kt index 81ed11ed5..08f724ba9 100644 --- a/src/en/mangakatana/src/eu/kanade/tachiyomi/extension/en/mangakatana/MangaKatana.kt +++ b/src/en/mangakatana/src/eu/kanade/tachiyomi/extension/en/mangakatana/MangaKatana.kt @@ -204,7 +204,7 @@ class MangaKatana : ConfigurableSource, ParsedHttpSource() { } ?: emptyList() } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Preferences diff --git a/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt b/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt index fd410d70b..278f80751 100644 --- a/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt +++ b/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt @@ -218,7 +218,7 @@ class MangaMiso : HttpSource() { } } - override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() //region Filter Classes private open class UriPartFilter(displayName: String, val vals: Array>) : diff --git a/src/en/mangaplex/src/eu/kanade/tachiyomi/extension/en/mangaplex/MangaPlex.kt b/src/en/mangaplex/src/eu/kanade/tachiyomi/extension/en/mangaplex/MangaPlex.kt index 7ecf7300d..00eaaeeb6 100644 --- a/src/en/mangaplex/src/eu/kanade/tachiyomi/extension/en/mangaplex/MangaPlex.kt +++ b/src/en/mangaplex/src/eu/kanade/tachiyomi/extension/en/mangaplex/MangaPlex.kt @@ -120,5 +120,5 @@ class MangaPlex : ParsedHttpSource() { .mapIndexed { i, el -> Page(i, "", el.attr("src")) } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() } diff --git a/src/en/mangarawclub/src/eu/kanade/tachiyomi/extension/en/mangarawclub/MangaRawClub.kt b/src/en/mangarawclub/src/eu/kanade/tachiyomi/extension/en/mangarawclub/MangaRawClub.kt index 6ba91a188..f57187768 100644 --- a/src/en/mangarawclub/src/eu/kanade/tachiyomi/extension/en/mangarawclub/MangaRawClub.kt +++ b/src/en/mangarawclub/src/eu/kanade/tachiyomi/extension/en/mangarawclub/MangaRawClub.kt @@ -149,7 +149,7 @@ class MangaRawClub : ParsedHttpSource() { return pages } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { if (query.isNotEmpty()) { diff --git a/src/en/mangasail/src/eu/kanade/tachiyomi/extension/en/mangasail/Mangasail.kt b/src/en/mangasail/src/eu/kanade/tachiyomi/extension/en/mangasail/Mangasail.kt index 5cf037bd7..a59f229e2 100644 --- a/src/en/mangasail/src/eu/kanade/tachiyomi/extension/en/mangasail/Mangasail.kt +++ b/src/en/mangasail/src/eu/kanade/tachiyomi/extension/en/mangasail/Mangasail.kt @@ -173,7 +173,7 @@ class Mangasail : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Filters diff --git a/src/en/mangasect/src/eu/kanade/tachiyomi/extension/en/mangasect/MangaSect.kt b/src/en/mangasect/src/eu/kanade/tachiyomi/extension/en/mangasect/MangaSect.kt index 4a844be2d..8803f71ad 100644 --- a/src/en/mangasect/src/eu/kanade/tachiyomi/extension/en/mangasect/MangaSect.kt +++ b/src/en/mangasect/src/eu/kanade/tachiyomi/extension/en/mangasect/MangaSect.kt @@ -64,13 +64,13 @@ class MangaSect : ParsedHttpSource() { override fun latestUpdatesParse(response: Response): MangasPage = popularMangaParse(response) override fun latestUpdatesSelector(): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun latestUpdatesFromElement(element: Element): SManga = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun latestUpdatesNextPageSelector(): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() // Search @@ -117,13 +117,13 @@ class MangaSect : ParsedHttpSource() { override fun searchMangaParse(response: Response): MangasPage = popularMangaParse(response) override fun searchMangaSelector(): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun searchMangaFromElement(element: Element): SManga = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun searchMangaNextPageSelector(): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() // Filters diff --git a/src/en/mangatown/src/eu/kanade/tachiyomi/extension/en/mangatown/Mangatown.kt b/src/en/mangatown/src/eu/kanade/tachiyomi/extension/en/mangatown/Mangatown.kt index f29ec8781..426f33ac9 100644 --- a/src/en/mangatown/src/eu/kanade/tachiyomi/extension/en/mangatown/Mangatown.kt +++ b/src/en/mangatown/src/eu/kanade/tachiyomi/extension/en/mangatown/Mangatown.kt @@ -136,7 +136,7 @@ class Mangatown : ParsedHttpSource() { return response.asJsoup().select("div#viewer img").attr("abs:src") } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList() = FilterList() } diff --git a/src/en/manta/src/eu/kanade/tachiyomi/extension/en/manta/MantaComics.kt b/src/en/manta/src/eu/kanade/tachiyomi/extension/en/manta/MantaComics.kt index 78dc14579..bac40441e 100644 --- a/src/en/manta/src/eu/kanade/tachiyomi/extension/en/manta/MantaComics.kt +++ b/src/en/manta/src/eu/kanade/tachiyomi/extension/en/manta/MantaComics.kt @@ -122,16 +122,16 @@ class MantaComics : HttpSource() { override fun getFilterList() = FilterList(Category()) override fun latestUpdatesParse(response: Response) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun popularMangaRequest(page: Int) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun popularMangaParse(response: Response) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun imageUrlParse(response: Response) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() private fun Request.fetch(parse: (Response) -> R) = client.newCall(this).asObservable().map { res -> diff --git a/src/en/megatokyo/src/eu/kanade/tachiyomi/extension/en/megatokyo/Megatokyo.kt b/src/en/megatokyo/src/eu/kanade/tachiyomi/extension/en/megatokyo/Megatokyo.kt index 4f60ac163..88653ac5e 100644 --- a/src/en/megatokyo/src/eu/kanade/tachiyomi/extension/en/megatokyo/Megatokyo.kt +++ b/src/en/megatokyo/src/eu/kanade/tachiyomi/extension/en/megatokyo/Megatokyo.kt @@ -97,38 +97,38 @@ class Megatokyo : ParsedHttpSource() { .hostnameVerifier { _, _ -> true }.build() } - override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = throw Exception("Not used") + override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = throw UnsupportedOperationException() override fun imageUrlRequest(page: Page) = GET(page.url) - 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") + 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() private fun String.toDate(): Long { return runCatching { dateParser.parse(this.replace("(\\d+)(st|nd|rd|th)".toRegex(), "$1"))?.time } diff --git a/src/en/multporn/src/eu/kanade/tachiyomi/extension/en/multporn/Multporn.kt b/src/en/multporn/src/eu/kanade/tachiyomi/extension/en/multporn/Multporn.kt index 3e999d0cb..708ce7fb1 100644 --- a/src/en/multporn/src/eu/kanade/tachiyomi/extension/en/multporn/Multporn.kt +++ b/src/en/multporn/src/eu/kanade/tachiyomi/extension/en/multporn/Multporn.kt @@ -240,11 +240,11 @@ class Multporn : ParsedHttpSource() { // Chapters - override fun chapterListSelector(): String = throw UnsupportedOperationException("Not used") + override fun chapterListSelector(): String = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() - override fun chapterListParse(response: Response): List = throw UnsupportedOperationException("Not used") + override fun chapterListParse(response: Response): List = throw UnsupportedOperationException() override fun fetchChapterList(manga: SManga): Observable> = Observable.just( listOf( @@ -264,7 +264,7 @@ class Multporn : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() // Filters diff --git a/src/en/myhentaicomics/src/eu/kanade/tachiyomi/extension/en/myhentaicomics/MyHentaiComics.kt b/src/en/myhentaicomics/src/eu/kanade/tachiyomi/extension/en/myhentaicomics/MyHentaiComics.kt index 992368cd5..397a99e55 100644 --- a/src/en/myhentaicomics/src/eu/kanade/tachiyomi/extension/en/myhentaicomics/MyHentaiComics.kt +++ b/src/en/myhentaicomics/src/eu/kanade/tachiyomi/extension/en/myhentaicomics/MyHentaiComics.kt @@ -112,9 +112,9 @@ class MyHentaiComics : ParsedHttpSource() { ) } - override fun chapterListSelector() = throw UnsupportedOperationException("Not used") + override fun chapterListSelector() = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() // Pages @@ -135,7 +135,7 @@ class MyHentaiComics : ParsedHttpSource() { return pages } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Filters diff --git a/src/en/myhentaigallery/src/eu/kanade/tachiyomi/extension/en/myhentaigallery/MyHentaiGallery.kt b/src/en/myhentaigallery/src/eu/kanade/tachiyomi/extension/en/myhentaigallery/MyHentaiGallery.kt index cfef00c31..dc206152a 100644 --- a/src/en/myhentaigallery/src/eu/kanade/tachiyomi/extension/en/myhentaigallery/MyHentaiGallery.kt +++ b/src/en/myhentaigallery/src/eu/kanade/tachiyomi/extension/en/myhentaigallery/MyHentaiGallery.kt @@ -134,9 +134,9 @@ class MyHentaiGallery : ParsedHttpSource() { ) } - override fun chapterListSelector() = throw UnsupportedOperationException("Not used") + override fun chapterListSelector() = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() // Pages @@ -146,7 +146,7 @@ class MyHentaiGallery : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Filters diff --git a/src/en/nineanime/src/eu/kanade/tachiyomi/extension/en/nineanime/NineAnime.kt b/src/en/nineanime/src/eu/kanade/tachiyomi/extension/en/nineanime/NineAnime.kt index ba431b0a3..7d3cd3039 100644 --- a/src/en/nineanime/src/eu/kanade/tachiyomi/extension/en/nineanime/NineAnime.kt +++ b/src/en/nineanime/src/eu/kanade/tachiyomi/extension/en/nineanime/NineAnime.kt @@ -181,7 +181,7 @@ class NineAnime : ParsedHttpSource() { }.toList() } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Filters diff --git a/src/en/ninehentai/src/eu/kanade/tachiyomi/extension/en/ninehentai/NineHentai.kt b/src/en/ninehentai/src/eu/kanade/tachiyomi/extension/en/ninehentai/NineHentai.kt index d04ec98d6..a872d468c 100644 --- a/src/en/ninehentai/src/eu/kanade/tachiyomi/extension/en/ninehentai/NineHentai.kt +++ b/src/en/ninehentai/src/eu/kanade/tachiyomi/extension/en/ninehentai/NineHentai.kt @@ -359,7 +359,7 @@ class NineHentai : HttpSource() { CategoryFilter(), ) - override fun imageUrlParse(response: Response): String = throw Exception("Not Used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() private val Request.bodyString: String get() { diff --git a/src/en/oglaf/src/eu/kanade/tachiyomi/extension/en/oglaf/Oglaf.kt b/src/en/oglaf/src/eu/kanade/tachiyomi/extension/en/oglaf/Oglaf.kt index 5e543dea9..59091b96c 100644 --- a/src/en/oglaf/src/eu/kanade/tachiyomi/extension/en/oglaf/Oglaf.kt +++ b/src/en/oglaf/src/eu/kanade/tachiyomi/extension/en/oglaf/Oglaf.kt @@ -77,31 +77,31 @@ class Oglaf : ParsedHttpSource() { return pages } - 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() } diff --git a/src/en/oots/src/eu/kanade/tachiyomi/extension/en/oots/oots.kt b/src/en/oots/src/eu/kanade/tachiyomi/extension/en/oots/oots.kt index bcb158fe0..7669ccbe7 100644 --- a/src/en/oots/src/eu/kanade/tachiyomi/extension/en/oots/oots.kt +++ b/src/en/oots/src/eu/kanade/tachiyomi/extension/en/oots/oots.kt @@ -91,31 +91,31 @@ class oots : ParsedHttpSource() { return pages } - 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() } diff --git a/src/en/oppaistream/src/eu/kanade/tachiyomi/extension/en/oppaistream/OppaiStream.kt b/src/en/oppaistream/src/eu/kanade/tachiyomi/extension/en/oppaistream/OppaiStream.kt index fb25cf2d5..e3fdafdba 100644 --- a/src/en/oppaistream/src/eu/kanade/tachiyomi/extension/en/oppaistream/OppaiStream.kt +++ b/src/en/oppaistream/src/eu/kanade/tachiyomi/extension/en/oppaistream/OppaiStream.kt @@ -280,7 +280,7 @@ class OppaiStream : ParsedHttpSource() { // Unused override fun imageUrlParse(document: Document): String { - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() } // helpers diff --git a/src/en/patchfriday/src/eu/kanade/tachiyomi/extension/en/patchfriday/PatchFriday.kt b/src/en/patchfriday/src/eu/kanade/tachiyomi/extension/en/patchfriday/PatchFriday.kt index 3bbedf514..308c3fbc5 100644 --- a/src/en/patchfriday/src/eu/kanade/tachiyomi/extension/en/patchfriday/PatchFriday.kt +++ b/src/en/patchfriday/src/eu/kanade/tachiyomi/extension/en/patchfriday/PatchFriday.kt @@ -45,23 +45,23 @@ class PatchFriday : HttpSource() { return Observable.just(MangasPage(listOf(createManga()), false)) } - 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 - 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 override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = Observable.just(MangasPage(emptyList(), false)) - 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 @@ -69,7 +69,7 @@ class PatchFriday : HttpSource() { return Observable.just(createManga()) } - override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() // Chapters @@ -108,7 +108,7 @@ class PatchFriday : HttpSource() { return chapters } - override fun chapterListParse(response: Response): List = throw UnsupportedOperationException("Not used") + override fun chapterListParse(response: Response): List = throw UnsupportedOperationException() // Pages @@ -116,7 +116,7 @@ class PatchFriday : HttpSource() { return Observable.just(listOf(Page(0, baseUrl + chapter.url))) } - override fun pageListParse(response: Response): List = throw UnsupportedOperationException("Not used") + override fun pageListParse(response: Response): List = throw UnsupportedOperationException() override fun imageUrlParse(response: Response): String { return response.asJsoup().select("div#strip_image img").attr("abs:src") diff --git a/src/en/purplecress/src/eu/kanade/tachiyomi/extension/en/purplecress/PurpleCress.kt b/src/en/purplecress/src/eu/kanade/tachiyomi/extension/en/purplecress/PurpleCress.kt index 3f91040be..d0c357e71 100644 --- a/src/en/purplecress/src/eu/kanade/tachiyomi/extension/en/purplecress/PurpleCress.kt +++ b/src/en/purplecress/src/eu/kanade/tachiyomi/extension/en/purplecress/PurpleCress.kt @@ -145,11 +145,11 @@ class PurpleCress : HttpSource() { } } - 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() - override fun imageUrlRequest(page: Page): Request = throw UnsupportedOperationException("Not used") + override fun imageUrlRequest(page: Page): Request = throw UnsupportedOperationException() - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() } diff --git a/src/en/pururin/src/eu/kanade/tachiyomi/extension/en/pururin/Pururin.kt b/src/en/pururin/src/eu/kanade/tachiyomi/extension/en/pururin/Pururin.kt index b6b866188..973923f29 100644 --- a/src/en/pururin/src/eu/kanade/tachiyomi/extension/en/pururin/Pururin.kt +++ b/src/en/pururin/src/eu/kanade/tachiyomi/extension/en/pururin/Pururin.kt @@ -132,7 +132,7 @@ class Pururin : HttpSource() { } override fun imageUrlParse(response: Response) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun fetchImageUrl(page: Page) = Request.Builder().url(page.url).head().build() diff --git a/src/en/questionablecontent/src/eu/kanade/tachiyomi/extension/en/questionablecontent/QuestionableContent.kt b/src/en/questionablecontent/src/eu/kanade/tachiyomi/extension/en/questionablecontent/QuestionableContent.kt index e174ca68c..7811333f5 100644 --- a/src/en/questionablecontent/src/eu/kanade/tachiyomi/extension/en/questionablecontent/QuestionableContent.kt +++ b/src/en/questionablecontent/src/eu/kanade/tachiyomi/extension/en/questionablecontent/QuestionableContent.kt @@ -116,31 +116,31 @@ class QuestionableContent : ParsedHttpSource(), ConfigurableSource { screen.addPreference(authorsNotesPref) } - 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() } diff --git a/src/en/rainofsnow/src/eu/kanade/tachiyomi/extension/en/rainofsnow/RainOfSnow.kt b/src/en/rainofsnow/src/eu/kanade/tachiyomi/extension/en/rainofsnow/RainOfSnow.kt index fbf1620e9..e2dbd2080 100644 --- a/src/en/rainofsnow/src/eu/kanade/tachiyomi/extension/en/rainofsnow/RainOfSnow.kt +++ b/src/en/rainofsnow/src/eu/kanade/tachiyomi/extension/en/rainofsnow/RainOfSnow.kt @@ -159,9 +159,9 @@ open class RainOfSnow() : ParsedHttpSource() { fun toUriPart() = vals[state].second } - override fun latestUpdatesFromElement(element: Element) = throw Exception("Not used") - override fun latestUpdatesNextPageSelector() = throw Exception("Not used") - override fun latestUpdatesRequest(page: Int) = throw Exception("Not used") - override fun latestUpdatesSelector() = throw Exception("Not used") - override fun imageUrlParse(document: Document) = throw Exception("Not used") + override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException() + override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException() + override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException() + override fun latestUpdatesSelector() = throw UnsupportedOperationException() + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() } diff --git a/src/en/randowiz/src/eu/kanade/tachiyomi/extension/en/randowiz/Randowiz.kt b/src/en/randowiz/src/eu/kanade/tachiyomi/extension/en/randowiz/Randowiz.kt index cc48430ac..b528a90ad 100644 --- a/src/en/randowiz/src/eu/kanade/tachiyomi/extension/en/randowiz/Randowiz.kt +++ b/src/en/randowiz/src/eu/kanade/tachiyomi/extension/en/randowiz/Randowiz.kt @@ -125,34 +125,34 @@ class Randowiz : 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") + 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() private fun parseDate(dateStr: String): Long { return runCatching { DATE_FORMATTER.parse(dateStr)?.time }.getOrNull() ?: 0L diff --git a/src/en/rawmanga/src/eu/kanade/tachiyomi/extension/en/rawmanga/RawManga.kt b/src/en/rawmanga/src/eu/kanade/tachiyomi/extension/en/rawmanga/RawManga.kt index 98d527b28..afc772e8c 100644 --- a/src/en/rawmanga/src/eu/kanade/tachiyomi/extension/en/rawmanga/RawManga.kt +++ b/src/en/rawmanga/src/eu/kanade/tachiyomi/extension/en/rawmanga/RawManga.kt @@ -140,11 +140,11 @@ class RawManga : ParsedHttpSource() { override fun latestUpdatesNextPageSelector() = throw java.lang.UnsupportedOperationException("Not used.") - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used.") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() - override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException("Not used.") + override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException() companion object { val DATE_FORMATTER by lazy { SimpleDateFormat("yyyy-MM-dd", Locale.US) } diff --git a/src/en/readm/src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt b/src/en/readm/src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt index c7f1ad045..52d8045e9 100644 --- a/src/en/readm/src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt +++ b/src/en/readm/src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt @@ -77,9 +77,9 @@ class ReadM : ParsedHttpSource() { return POST("$baseUrl/service/search", searchHeaders, formBody.build()) } - override fun searchMangaNextPageSelector(): String = throw Exception("Not used") - override fun searchMangaSelector(): String = throw Exception("Not used") - override fun searchMangaFromElement(element: Element): SManga = throw Exception("Not used") + override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException() + override fun searchMangaSelector(): String = throw UnsupportedOperationException() + override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException() override fun searchMangaParse(response: Response) = json.parseToJsonElement(response.body.string()).jsonObject["manga"]?.jsonArray?.map { val obj = it.jsonObject @@ -154,7 +154,7 @@ class ReadM : ParsedHttpSource() { // Pages - override fun imageUrlParse(document: Document): String = throw Exception("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun pageListParse(document: Document): List = document.select("div.ch-images img").mapIndexed { index, element -> Page(index, "", element.imgAttr()) } diff --git a/src/en/readmangatoday/src/eu/kanade/tachiyomi/extension/en/readmangatoday/Readmangatoday.kt b/src/en/readmangatoday/src/eu/kanade/tachiyomi/extension/en/readmangatoday/Readmangatoday.kt index 4c6c5d688..c7e67d471 100644 --- a/src/en/readmangatoday/src/eu/kanade/tachiyomi/extension/en/readmangatoday/Readmangatoday.kt +++ b/src/en/readmangatoday/src/eu/kanade/tachiyomi/extension/en/readmangatoday/Readmangatoday.kt @@ -193,7 +193,7 @@ class Readmangatoday : ParsedHttpSource() { return scriptPages.distinctBy { it.imageUrl } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() private class Status : Filter.TriState("Completed") private class Genre(name: String, val id: Int) : Filter.TriState(name) diff --git a/src/en/reallifecomics/src/eu/kanade/tachiyomi/extension/en/reallifecomics/RealLifeComics.kt b/src/en/reallifecomics/src/eu/kanade/tachiyomi/extension/en/reallifecomics/RealLifeComics.kt index 1f1dcd0e2..bd3e728af 100644 --- a/src/en/reallifecomics/src/eu/kanade/tachiyomi/extension/en/reallifecomics/RealLifeComics.kt +++ b/src/en/reallifecomics/src/eu/kanade/tachiyomi/extension/en/reallifecomics/RealLifeComics.kt @@ -101,33 +101,33 @@ class RealLifeComics : ParsedHttpSource() { // Unsupported - 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 = "/images/logo.png" diff --git a/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt b/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt index 6d8262e73..09b30678a 100644 --- a/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt +++ b/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt @@ -334,9 +334,9 @@ class ReaperScans : ParsedHttpSource() { } // Unused - override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not Used") + override fun searchMangaNextPageSelector() = throw UnsupportedOperationException() - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() companion object { private val JSON_MEDIA_TYPE = "application/json; charset=utf-8".toMediaType() diff --git a/src/en/rizzcomic/src/eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt b/src/en/rizzcomic/src/eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt index f9ac3a6a9..a3a4dc2f3 100644 --- a/src/en/rizzcomic/src/eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt +++ b/src/en/rizzcomic/src/eu/kanade/tachiyomi/extension/en/rizzcomic/RizzComic.kt @@ -255,11 +255,11 @@ class RizzComic : HttpSource() { } override fun mangaDetailsParse(response: Response): SManga { - throw UnsupportedOperationException("Not Used") + throw UnsupportedOperationException() } override fun imageUrlParse(response: Response): String { - throw UnsupportedOperationException("Not Used") + throw UnsupportedOperationException() } private inline fun Response.parseAs(): T = diff --git a/src/en/rmanga/src/eu/kanade/tachiyomi/extension/en/rmanga/Rmanga.kt b/src/en/rmanga/src/eu/kanade/tachiyomi/extension/en/rmanga/Rmanga.kt index e66044ebc..d933c80a8 100644 --- a/src/en/rmanga/src/eu/kanade/tachiyomi/extension/en/rmanga/Rmanga.kt +++ b/src/en/rmanga/src/eu/kanade/tachiyomi/extension/en/rmanga/Rmanga.kt @@ -166,7 +166,7 @@ class Rmanga : ConfigurableSource, ParsedHttpSource() { } override fun imageUrlParse(document: Document): String { - throw UnsupportedOperationException("Not Used") + throw UnsupportedOperationException() } override fun setupPreferenceScreen(screen: PreferenceScreen) { diff --git a/src/en/schlockmercenary/src/eu/kanade/tachiyomi/extension/en/schlockmercenary/Schlockmercenary.kt b/src/en/schlockmercenary/src/eu/kanade/tachiyomi/extension/en/schlockmercenary/Schlockmercenary.kt index 06a77ac08..d1e8c59ac 100644 --- a/src/en/schlockmercenary/src/eu/kanade/tachiyomi/extension/en/schlockmercenary/Schlockmercenary.kt +++ b/src/en/schlockmercenary/src/eu/kanade/tachiyomi/extension/en/schlockmercenary/Schlockmercenary.kt @@ -158,29 +158,29 @@ class Schlockmercenary : ParsedHttpSource() { override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = Observable.just(MangasPage(emptyList(), false)) - override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") + override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException() - override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException("Not used") + override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException() - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun popularMangaNextPageSelector(): String? = null - override fun searchMangaSelector(): String = throw UnsupportedOperationException("Not used") + override fun searchMangaSelector(): String = throw UnsupportedOperationException() - 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 mangaDetailsParse(document: Document): SManga = throw UnsupportedOperationException("Not used") + override fun mangaDetailsParse(document: Document): SManga = throw UnsupportedOperationException() - override fun pageListParse(document: Document): List = throw UnsupportedOperationException("Not used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() - override fun latestUpdatesNextPageSelector(): String = throw UnsupportedOperationException("Not used") + override fun latestUpdatesNextPageSelector(): String = throw UnsupportedOperationException() - override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") + override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException() - override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException("Not used") + override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException() - override fun latestUpdatesSelector(): String = throw UnsupportedOperationException("Not used") + override fun latestUpdatesSelector(): String = throw UnsupportedOperationException() companion object { const val defaultThumbnailUrl = "/static/img/logo.b6dacbb8.jpg" diff --git a/src/en/silentmangaaudition/src/eu/kanade/tachiyomi/extension/en/silentmangaaudition/SilentMangaAudition.kt b/src/en/silentmangaaudition/src/eu/kanade/tachiyomi/extension/en/silentmangaaudition/SilentMangaAudition.kt index 3da7d4225..e1d63dbc6 100644 --- a/src/en/silentmangaaudition/src/eu/kanade/tachiyomi/extension/en/silentmangaaudition/SilentMangaAudition.kt +++ b/src/en/silentmangaaudition/src/eu/kanade/tachiyomi/extension/en/silentmangaaudition/SilentMangaAudition.kt @@ -102,19 +102,19 @@ class SilentMangaAudition : HttpSource() { return GET(page.imageUrl!!, newHeaders) } - 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() - 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 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() - override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() companion object { private const val SMACMAG_URL = "https://smacmag.net" diff --git a/src/en/solarandsundry/src/eu/kanade/tachiyomi/extension/en/solarandsundry/SolarAndSundry.kt b/src/en/solarandsundry/src/eu/kanade/tachiyomi/extension/en/solarandsundry/SolarAndSundry.kt index 522d80edb..ef48f214e 100644 --- a/src/en/solarandsundry/src/eu/kanade/tachiyomi/extension/en/solarandsundry/SolarAndSundry.kt +++ b/src/en/solarandsundry/src/eu/kanade/tachiyomi/extension/en/solarandsundry/SolarAndSundry.kt @@ -76,23 +76,23 @@ class SolarAndSundry : HttpSource() { return Observable.just(MangasPage(listOf(createManga()), false)) } - 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 - 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 override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = Observable.just(MangasPage(emptyList(), false)) - 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 @@ -100,7 +100,7 @@ class SolarAndSundry : HttpSource() { return Observable.just(createManga().apply { initialized = true }) } - override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() override fun getMangaUrl(manga: SManga): String { return ARCHIVE_URL @@ -134,5 +134,5 @@ class SolarAndSundry : HttpSource() { override fun imageRequest(page: Page) = GET(page.imageUrl!!, imgHeaders) - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() } diff --git a/src/en/supermega/src/eu/kanade/tachiyomi/extension/en/supermega/Supermega.kt b/src/en/supermega/src/eu/kanade/tachiyomi/extension/en/supermega/Supermega.kt index 0590c12ce..e02015523 100644 --- a/src/en/supermega/src/eu/kanade/tachiyomi/extension/en/supermega/Supermega.kt +++ b/src/en/supermega/src/eu/kanade/tachiyomi/extension/en/supermega/Supermega.kt @@ -91,39 +91,39 @@ class Supermega : ParsedHttpSource() { .hostnameVerifier { _, _ -> true }.build() } - override fun chapterListSelector(): String = throw UnsupportedOperationException("Not used") - override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not used") + override fun chapterListSelector(): String = throw UnsupportedOperationException() + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() - override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = throw Exception("Not used") + override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = throw UnsupportedOperationException() override fun imageUrlRequest(page: Page) = GET(page.url) - 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") + 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() } diff --git a/src/en/swordscomic/src/eu/kanade/tachiyomi/extension/en/swordscomic/SwordsComic.kt b/src/en/swordscomic/src/eu/kanade/tachiyomi/extension/en/swordscomic/SwordsComic.kt index 0a23b7dee..5ab64f3ac 100644 --- a/src/en/swordscomic/src/eu/kanade/tachiyomi/extension/en/swordscomic/SwordsComic.kt +++ b/src/en/swordscomic/src/eu/kanade/tachiyomi/extension/en/swordscomic/SwordsComic.kt @@ -44,23 +44,23 @@ class SwordsComic : HttpSource() { return Observable.just(MangasPage(listOf(createManga()), false)) } - 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 - 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 override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable = Observable.just(MangasPage(emptyList(), false)) - 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 @@ -68,7 +68,7 @@ class SwordsComic : HttpSource() { return Observable.just(createManga().apply { initialized = true }) } - override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() // Chapters @@ -109,5 +109,5 @@ class SwordsComic : HttpSource() { return listOf(Page(0, "", imageElement.attr("abs:src")), Page(1, "", "https://fakeimg.pl/1800x2252/978B65/000000/?text=$builder&font_size=60&font=comic+sans")) } - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() } diff --git a/src/en/tapastic/src/eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt b/src/en/tapastic/src/eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt index 9103bfd46..fb8c3e41b 100644 --- a/src/en/tapastic/src/eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt +++ b/src/en/tapastic/src/eu/kanade/tachiyomi/extension/en/tapastic/Tapastic.kt @@ -371,7 +371,7 @@ class Tapastic : ConfigurableSource, ParsedHttpSource() { } override fun imageUrlParse(document: Document) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() // Filters diff --git a/src/en/tcbscans/src/eu/kanade/tachiyomi/extension/en/tcbscans/TCBScans.kt b/src/en/tcbscans/src/eu/kanade/tachiyomi/extension/en/tcbscans/TCBScans.kt index f6fa43170..83280594b 100644 --- a/src/en/tcbscans/src/eu/kanade/tachiyomi/extension/en/tcbscans/TCBScans.kt +++ b/src/en/tcbscans/src/eu/kanade/tachiyomi/extension/en/tcbscans/TCBScans.kt @@ -86,7 +86,7 @@ class TCBScans : ParsedHttpSource() { } override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element) - override fun searchMangaNextPageSelector(): String = throw Exception("Not used") + override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException() override fun searchMangaSelector(): String = popularMangaSelector() diff --git a/src/en/theduckwebcomics/src/eu/kanade/tachiyomi/extension/en/theduckwebcomics/TheDuckWebcomics.kt b/src/en/theduckwebcomics/src/eu/kanade/tachiyomi/extension/en/theduckwebcomics/TheDuckWebcomics.kt index ef8752242..f59946372 100644 --- a/src/en/theduckwebcomics/src/eu/kanade/tachiyomi/extension/en/theduckwebcomics/TheDuckWebcomics.kt +++ b/src/en/theduckwebcomics/src/eu/kanade/tachiyomi/extension/en/theduckwebcomics/TheDuckWebcomics.kt @@ -88,13 +88,13 @@ class TheDuckWebcomics : ParsedHttpSource() { listOf(Page(0, "", document.selectFirst(".page-image")!!.absUrl("src"))) override fun mangaDetailsParse(document: Document) = - 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() override fun getFilterList() = FilterList( TypeFilter(), diff --git a/src/en/thepropertyofhate/src/eu/kanade/tachiyomi/extension/en/thepropertyofhate/ThePropertyOfHate.kt b/src/en/thepropertyofhate/src/eu/kanade/tachiyomi/extension/en/thepropertyofhate/ThePropertyOfHate.kt index b24918e36..acc40d578 100644 --- a/src/en/thepropertyofhate/src/eu/kanade/tachiyomi/extension/en/thepropertyofhate/ThePropertyOfHate.kt +++ b/src/en/thepropertyofhate/src/eu/kanade/tachiyomi/extension/en/thepropertyofhate/ThePropertyOfHate.kt @@ -80,23 +80,23 @@ class ThePropertyOfHate : HttpSource() { response.asJsoup().selectFirst(".comic_comic > img")!!.absUrl("src") override fun popularMangaRequest(page: Int): Request = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun popularMangaParse(response: Response): MangasPage = - 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 searchMangaParse(response: Response): MangasPage = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = - throw UnsupportedOperationException("Search functionality is not available.") + throw Exception("Search functionality is not available.") } diff --git a/src/en/tsumino/src/eu/kanade/tachiyomi/extension/en/tsumino/Tsumino.kt b/src/en/tsumino/src/eu/kanade/tachiyomi/extension/en/tsumino/Tsumino.kt index 2ccdd2259..1ec96bea9 100644 --- a/src/en/tsumino/src/eu/kanade/tachiyomi/extension/en/tsumino/Tsumino.kt +++ b/src/en/tsumino/src/eu/kanade/tachiyomi/extension/en/tsumino/Tsumino.kt @@ -207,7 +207,7 @@ class Tsumino : HttpSource() { return pages } - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() data class AdvSearchEntry(val type: Int, val text: String, val exclude: Boolean) diff --git a/src/en/vgperson/src/eu/kanade/tachiyomi/extension/en/vgperson/Vgperson.kt b/src/en/vgperson/src/eu/kanade/tachiyomi/extension/en/vgperson/Vgperson.kt index 720b71103..dc456ef36 100644 --- a/src/en/vgperson/src/eu/kanade/tachiyomi/extension/en/vgperson/Vgperson.kt +++ b/src/en/vgperson/src/eu/kanade/tachiyomi/extension/en/vgperson/Vgperson.kt @@ -119,24 +119,24 @@ class Vgperson : ParsedHttpSource() { override fun latestUpdatesNextPageSelector(): String? = null override fun latestUpdatesRequest(page: Int) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() override fun latestUpdatesFromElement(element: Element) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() override fun searchMangaSelector() = "" override fun searchMangaNextPageSelector(): String? = null override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() override fun searchMangaFromElement(element: Element) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() override fun searchMangaParse(response: Response) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() override fun imageUrlParse(document: Document) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() } diff --git a/src/en/vyvymanga/src/eu/kanade/tachiyomi/extension/en/vyvymanga/VyvyManga.kt b/src/en/vyvymanga/src/eu/kanade/tachiyomi/extension/en/vyvymanga/VyvyManga.kt index c6575c784..d04762b11 100644 --- a/src/en/vyvymanga/src/eu/kanade/tachiyomi/extension/en/vyvymanga/VyvyManga.kt +++ b/src/en/vyvymanga/src/eu/kanade/tachiyomi/extension/en/vyvymanga/VyvyManga.kt @@ -107,7 +107,7 @@ class VyvyManga : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String { - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() } // Other diff --git a/src/en/warforrayuba/src/eu/kanade/tachiyomi/extension/en/warforrayuba/WarForRayuba.kt b/src/en/warforrayuba/src/eu/kanade/tachiyomi/extension/en/warforrayuba/WarForRayuba.kt index bcda0c39c..1b24602e1 100644 --- a/src/en/warforrayuba/src/eu/kanade/tachiyomi/extension/en/warforrayuba/WarForRayuba.kt +++ b/src/en/warforrayuba/src/eu/kanade/tachiyomi/extension/en/warforrayuba/WarForRayuba.kt @@ -146,13 +146,13 @@ class WarForRayuba : HttpSource() { return Observable.just(MangasPage(emptyList(), false)) } - override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException("Not Used") + override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException() - override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not Used") + override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException() - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() - override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException("Not Used") + override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException() - override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not Used") + override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException() } diff --git a/src/en/webcomics/src/eu/kanade/tachiyomi/extension/en/webcomics/Webcomics.kt b/src/en/webcomics/src/eu/kanade/tachiyomi/extension/en/webcomics/Webcomics.kt index ba1869eeb..58b5333f1 100644 --- a/src/en/webcomics/src/eu/kanade/tachiyomi/extension/en/webcomics/Webcomics.kt +++ b/src/en/webcomics/src/eu/kanade/tachiyomi/extension/en/webcomics/Webcomics.kt @@ -66,7 +66,7 @@ class Webcomics : ParsedHttpSource() { return manga } - override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not used") + override fun searchMangaNextPageSelector() = throw UnsupportedOperationException() override fun searchMangaFromElement(element: Element): SManga { val infoElement = element.select(".col-md-5") diff --git a/src/en/webnovel/src/eu/kanade/tachiyomi/extension/en/webnovel/WebNovel.kt b/src/en/webnovel/src/eu/kanade/tachiyomi/extension/en/webnovel/WebNovel.kt index f14197c0f..9a5558950 100644 --- a/src/en/webnovel/src/eu/kanade/tachiyomi/extension/en/webnovel/WebNovel.kt +++ b/src/en/webnovel/src/eu/kanade/tachiyomi/extension/en/webnovel/WebNovel.kt @@ -248,7 +248,7 @@ class WebNovel : HttpSource() { .mapIndexed { i, chapterPage -> Page(i, imageUrl = chapterPage.url) } } - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() override fun getFilterList() = FilterList( Filter.Header("NOTE: Ignored if using text search!"), diff --git a/src/en/zeroscans/src/eu/kanade/tachiyomi/extension/en/zeroscans/ZeroScans.kt b/src/en/zeroscans/src/eu/kanade/tachiyomi/extension/en/zeroscans/ZeroScans.kt index c62082375..cb13ad4fa 100644 --- a/src/en/zeroscans/src/eu/kanade/tachiyomi/extension/en/zeroscans/ZeroScans.kt +++ b/src/en/zeroscans/src/eu/kanade/tachiyomi/extension/en/zeroscans/ZeroScans.kt @@ -333,20 +333,20 @@ class ZeroScans : HttpSource() { // Unused Stuff override fun imageUrlParse(response: Response): String = "" - 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() override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = - throw UnsupportedOperationException("Not Used") + throw UnsupportedOperationException() - override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not Used") + override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException() - override fun chapterListRequest(manga: SManga): Request = throw UnsupportedOperationException("Not Used") + override fun chapterListRequest(manga: SManga): Request = throw UnsupportedOperationException() - override fun chapterListParse(response: Response): List = throw UnsupportedOperationException("Not Used") + override fun chapterListParse(response: Response): List = throw UnsupportedOperationException() - override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException("Not Used") + override fun mangaDetailsParse(response: Response): SManga = throw UnsupportedOperationException() companion object { const val API_PATH = "swordflake" diff --git a/src/es/brakeout/src/eu/kanade/tachiyomi/extension/es/brakeout/Brakeout.kt b/src/es/brakeout/src/eu/kanade/tachiyomi/extension/es/brakeout/Brakeout.kt index 038effd2e..cab47f052 100644 --- a/src/es/brakeout/src/eu/kanade/tachiyomi/extension/es/brakeout/Brakeout.kt +++ b/src/es/brakeout/src/eu/kanade/tachiyomi/extension/es/brakeout/Brakeout.kt @@ -140,7 +140,7 @@ class Brakeout : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used!") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList(): FilterList { return FilterList( diff --git a/src/es/cerberusseries/src/eu/kanade/tachiyomi/extension/es/cerberusseries/CerberusSeries.kt b/src/es/cerberusseries/src/eu/kanade/tachiyomi/extension/es/cerberusseries/CerberusSeries.kt index 5302a71ae..8e0cc69dc 100644 --- a/src/es/cerberusseries/src/eu/kanade/tachiyomi/extension/es/cerberusseries/CerberusSeries.kt +++ b/src/es/cerberusseries/src/eu/kanade/tachiyomi/extension/es/cerberusseries/CerberusSeries.kt @@ -55,11 +55,11 @@ class CerberusSeries : ParsedHttpSource() { override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw IOException("Esta funcionalidad aún no esta implementada.") - override fun searchMangaSelector(): String = throw UnsupportedOperationException("Not used!") + override fun searchMangaSelector(): String = throw UnsupportedOperationException() - override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException("Not used!") + override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException() - override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used!") + override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException() override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply { thumbnail_url = document.selectFirst("div.thumb-wrapper img")!!.attr("abs:src") @@ -83,7 +83,7 @@ class CerberusSeries : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used!") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() private fun parseRelativeDate(date: String): Long { val number = Regex("""(\d+)""").find(date)?.value?.toIntOrNull() ?: return 0 diff --git a/src/es/heavenmanga/src/eu/kanade/tachiyomi/extension/es/heavenmanga/HeavenManga.kt b/src/es/heavenmanga/src/eu/kanade/tachiyomi/extension/es/heavenmanga/HeavenManga.kt index 26e416e33..2d19aa1ed 100644 --- a/src/es/heavenmanga/src/eu/kanade/tachiyomi/extension/es/heavenmanga/HeavenManga.kt +++ b/src/es/heavenmanga/src/eu/kanade/tachiyomi/extension/es/heavenmanga/HeavenManga.kt @@ -144,7 +144,7 @@ class HeavenManga : ParsedHttpSource() { description = document.select("div.description-summary p").text() } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun pageListRequest(chapter: SChapter): Request { return getUrlContents(baseUrl + chapter.url).select("a[id=leer]").attr("abs:href") diff --git a/src/es/ikigaimangas/src/eu/kanade/tachiyomi/extension/es/ikigaimangas/IkigaiMangas.kt b/src/es/ikigaimangas/src/eu/kanade/tachiyomi/extension/es/ikigaimangas/IkigaiMangas.kt index be2aa874a..ab744b1fb 100644 --- a/src/es/ikigaimangas/src/eu/kanade/tachiyomi/extension/es/ikigaimangas/IkigaiMangas.kt +++ b/src/es/ikigaimangas/src/eu/kanade/tachiyomi/extension/es/ikigaimangas/IkigaiMangas.kt @@ -148,7 +148,7 @@ class IkigaiMangas : HttpSource() { } } - override fun imageUrlParse(response: Response): String = throw Exception("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() private fun parseStatus(statusId: Long?) = when (statusId) { 906397890812182531, 911437469204086787 -> SManga.ONGOING diff --git a/src/es/inmanga/src/eu/kanade/tachiyomi/extension/es/inmanga/InManga.kt b/src/es/inmanga/src/eu/kanade/tachiyomi/extension/es/inmanga/InManga.kt index fd54fe17b..bda9611ff 100644 --- a/src/es/inmanga/src/eu/kanade/tachiyomi/extension/es/inmanga/InManga.kt +++ b/src/es/inmanga/src/eu/kanade/tachiyomi/extension/es/inmanga/InManga.kt @@ -155,7 +155,7 @@ class InManga : ParsedHttpSource() { date_upload = parseChapterDate(chapter.registrationDate) } - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() private fun parseChapterDate(string: String): Long { return DATE_FORMATTER.parse(string)?.time ?: 0L @@ -170,7 +170,7 @@ class InManga : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList() = FilterList() diff --git a/src/es/kingsofdarkness/src/eu/kanade/tachiyomi/extension/es/kingsofdarkness/KingsOfDarkness.kt b/src/es/kingsofdarkness/src/eu/kanade/tachiyomi/extension/es/kingsofdarkness/KingsOfDarkness.kt index 72ccb8e22..a58b8dafc 100644 --- a/src/es/kingsofdarkness/src/eu/kanade/tachiyomi/extension/es/kingsofdarkness/KingsOfDarkness.kt +++ b/src/es/kingsofdarkness/src/eu/kanade/tachiyomi/extension/es/kingsofdarkness/KingsOfDarkness.kt @@ -77,10 +77,10 @@ class KingsOfDarkness : ParsedHttpSource() { override fun latestUpdatesNextPageSelector(): String? = null override fun latestUpdatesRequest(page: Int) = - throw UnsupportedOperationException("Not used!") + throw UnsupportedOperationException() override fun latestUpdatesFromElement(element: Element) = - throw UnsupportedOperationException("Not used!") + throw UnsupportedOperationException() override fun popularMangaNextPageSelector(): String? = null @@ -89,11 +89,11 @@ class KingsOfDarkness : ParsedHttpSource() { override fun searchMangaNextPageSelector(): String? = null override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = - throw UnsupportedOperationException("Not used!") + throw UnsupportedOperationException() override fun searchMangaFromElement(element: Element) = - throw UnsupportedOperationException("Not used!") + throw UnsupportedOperationException() override fun imageUrlParse(document: Document) = - throw UnsupportedOperationException("Not used!") + throw UnsupportedOperationException() } diff --git a/src/es/kumanga/src/eu/kanade/tachiyomi/extension/es/kumanga/Kumanga.kt b/src/es/kumanga/src/eu/kanade/tachiyomi/extension/es/kumanga/Kumanga.kt index e04aade26..df79c8869 100644 --- a/src/es/kumanga/src/eu/kanade/tachiyomi/extension/es/kumanga/Kumanga.kt +++ b/src/es/kumanga/src/eu/kanade/tachiyomi/extension/es/kumanga/Kumanga.kt @@ -110,9 +110,9 @@ class Kumanga : HttpSource() { return MangasPage(mangaList, hasNextPage) } - override fun latestUpdatesRequest(page: Int) = throw Exception("Not Used") + override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException() - override fun latestUpdatesParse(response: Response) = throw Exception("Not Used") + override fun latestUpdatesParse(response: Response) = throw UnsupportedOperationException() override fun mangaDetailsParse(response: Response) = SManga.create().apply { val body = response.asJsoup() @@ -206,7 +206,7 @@ class Kumanga : HttpSource() { return GET(page.imageUrl!!, imageHeaders) } - override fun imageUrlParse(response: Response) = throw Exception("Not Used") + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { getKumangaToken() diff --git a/src/es/lectormanga/src/eu/kanade/tachiyomi/extension/es/lectormanga/LectorManga.kt b/src/es/lectormanga/src/eu/kanade/tachiyomi/extension/es/lectormanga/LectorManga.kt index 3bcc30c7d..0b5b0c5ce 100644 --- a/src/es/lectormanga/src/eu/kanade/tachiyomi/extension/es/lectormanga/LectorManga.kt +++ b/src/es/lectormanga/src/eu/kanade/tachiyomi/extension/es/lectormanga/LectorManga.kt @@ -260,9 +260,9 @@ class LectorManga : ConfigurableSource, ParsedHttpSource() { } } - override fun chapterListSelector() = throw UnsupportedOperationException("Not used") + override fun chapterListSelector() = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() private fun oneShotChapterListSelector() = "div.chapter-list-element > ul.list-group li.list-group-item" @@ -408,7 +408,7 @@ class LectorManga : ConfigurableSource, ParsedHttpSource() { .build(), ) - override fun imageUrlParse(document: Document) = throw Exception("Not Used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() private fun searchMangaByIdRequest(id: String) = GET("$baseUrl/$MANGA_URL_CHUNK/$id", headers) diff --git a/src/es/leercapitulo/src/eu/kanade/tachiyomi/extension/es/leercapitulo/LeerCapitulo.kt b/src/es/leercapitulo/src/eu/kanade/tachiyomi/extension/es/leercapitulo/LeerCapitulo.kt index 1b7ee856e..5ca21c35b 100644 --- a/src/es/leercapitulo/src/eu/kanade/tachiyomi/extension/es/leercapitulo/LeerCapitulo.kt +++ b/src/es/leercapitulo/src/eu/kanade/tachiyomi/extension/es/leercapitulo/LeerCapitulo.kt @@ -70,9 +70,9 @@ class LeerCapitulo : ParsedHttpSource() { return MangasPage(mangas, hasNextPage = false) } - 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(): String? = null @@ -156,7 +156,7 @@ class LeerCapitulo : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() private fun String.toStatus() = when (this) { "Ongoing" -> SManga.ONGOING diff --git a/src/es/leermangasxyz/src/eu/kanade/tachiyomi/extension/es/leermangasxyz/LeerMangasXYZ.kt b/src/es/leermangasxyz/src/eu/kanade/tachiyomi/extension/es/leermangasxyz/LeerMangasXYZ.kt index 04c26175f..b67574577 100644 --- a/src/es/leermangasxyz/src/eu/kanade/tachiyomi/extension/es/leermangasxyz/LeerMangasXYZ.kt +++ b/src/es/leermangasxyz/src/eu/kanade/tachiyomi/extension/es/leermangasxyz/LeerMangasXYZ.kt @@ -20,15 +20,15 @@ open class LeerMangasXYZ : ParsedHttpSource() { override val name: String = "LeerManga.xyz" - 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 latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException("Not used") + override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException() - override fun latestUpdatesSelector(): String = throw UnsupportedOperationException("Not used") + override fun latestUpdatesSelector(): String = throw UnsupportedOperationException() - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override val supportsLatest: Boolean = false diff --git a/src/es/mangalatino/src/eu/kanade/tachiyomi/extension/es/mangalatino/MangaLatino.kt b/src/es/mangalatino/src/eu/kanade/tachiyomi/extension/es/mangalatino/MangaLatino.kt index 427866ff5..54ab27783 100644 --- a/src/es/mangalatino/src/eu/kanade/tachiyomi/extension/es/mangalatino/MangaLatino.kt +++ b/src/es/mangalatino/src/eu/kanade/tachiyomi/extension/es/mangalatino/MangaLatino.kt @@ -109,7 +109,7 @@ class MangaLatino : ParsedHttpSource() { return GET(page.imageUrl!!, noRefererHeader) } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used!") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList(): FilterList = FilterList( Filter.Header("NOTA: La búsqueda por texto ignorará los demás filtros."), diff --git a/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt b/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt index 4d13928e3..e6d5971b4 100644 --- a/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt +++ b/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt @@ -198,7 +198,7 @@ open class MangaOni : ConfigurableSource, ParsedHttpSource() { } } - override fun imageUrlParse(document: Document) = throw Exception("Not Used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun getFilterList(): FilterList { val filterList = mutableListOf( diff --git a/src/es/manhwasnet/src/eu/kanade/tachiyomi/extension/es/manhwasnet/ManhwasNet.kt b/src/es/manhwasnet/src/eu/kanade/tachiyomi/extension/es/manhwasnet/ManhwasNet.kt index b0892f242..2e8e74f25 100644 --- a/src/es/manhwasnet/src/eu/kanade/tachiyomi/extension/es/manhwasnet/ManhwasNet.kt +++ b/src/es/manhwasnet/src/eu/kanade/tachiyomi/extension/es/manhwasnet/ManhwasNet.kt @@ -153,7 +153,7 @@ class ManhwasNet : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun getFilterList() = FilterList( Filter.Header("Los filtros no se pueden combinar:"), diff --git a/src/es/nartag/src/eu/kanade/tachiyomi/extension/es/nartag/Nartag.kt b/src/es/nartag/src/eu/kanade/tachiyomi/extension/es/nartag/Nartag.kt index fc7739553..07a1cd034 100644 --- a/src/es/nartag/src/eu/kanade/tachiyomi/extension/es/nartag/Nartag.kt +++ b/src/es/nartag/src/eu/kanade/tachiyomi/extension/es/nartag/Nartag.kt @@ -146,7 +146,7 @@ class Nartag : ParsedHttpSource() { else -> attr("abs:src") } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used!") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList(): FilterList = FilterList( TypeFilter(), diff --git a/src/es/olympusscanlation/src/eu/kanade/tachiyomi/extension/es/olympusscanlation/OlympusScanlation.kt b/src/es/olympusscanlation/src/eu/kanade/tachiyomi/extension/es/olympusscanlation/OlympusScanlation.kt index 9c1b01ec6..fcfcf3b5f 100644 --- a/src/es/olympusscanlation/src/eu/kanade/tachiyomi/extension/es/olympusscanlation/OlympusScanlation.kt +++ b/src/es/olympusscanlation/src/eu/kanade/tachiyomi/extension/es/olympusscanlation/OlympusScanlation.kt @@ -224,7 +224,7 @@ class OlympusScanlation : HttpSource() { } } - override fun imageUrlParse(response: Response): String = throw Exception("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() private fun parseStatus(statusId: Int?) = when (statusId) { 1 -> SManga.ONGOING diff --git a/src/es/ravenmanga/src/eu/kanade/tachiyomi/extension/es/ravenmanga/RavenManga.kt b/src/es/ravenmanga/src/eu/kanade/tachiyomi/extension/es/ravenmanga/RavenManga.kt index 235977859..27a339ff2 100644 --- a/src/es/ravenmanga/src/eu/kanade/tachiyomi/extension/es/ravenmanga/RavenManga.kt +++ b/src/es/ravenmanga/src/eu/kanade/tachiyomi/extension/es/ravenmanga/RavenManga.kt @@ -140,7 +140,7 @@ class RavenManga : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used!") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList(): FilterList { return FilterList( diff --git a/src/es/templescanesp/src/eu/kanade/tachiyomi/extension/es/templescanesp/TempleScanEsp.kt b/src/es/templescanesp/src/eu/kanade/tachiyomi/extension/es/templescanesp/TempleScanEsp.kt index 610b63b40..17d920cbb 100644 --- a/src/es/templescanesp/src/eu/kanade/tachiyomi/extension/es/templescanesp/TempleScanEsp.kt +++ b/src/es/templescanesp/src/eu/kanade/tachiyomi/extension/es/templescanesp/TempleScanEsp.kt @@ -144,7 +144,7 @@ class TempleScanEsp : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used!") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList(): FilterList { return FilterList( diff --git a/src/es/tumangaonline/src/eu/kanade/tachiyomi/extension/es/tumangaonline/TuMangaOnline.kt b/src/es/tumangaonline/src/eu/kanade/tachiyomi/extension/es/tumangaonline/TuMangaOnline.kt index 6f3b99af6..3c25a96f4 100644 --- a/src/es/tumangaonline/src/eu/kanade/tachiyomi/extension/es/tumangaonline/TuMangaOnline.kt +++ b/src/es/tumangaonline/src/eu/kanade/tachiyomi/extension/es/tumangaonline/TuMangaOnline.kt @@ -244,8 +244,8 @@ class TuMangaOnline : ConfigurableSource, ParsedHttpSource() { } return chapters } - override fun chapterListSelector() = throw UnsupportedOperationException("Not used") - override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not used") + override fun chapterListSelector() = throw UnsupportedOperationException() + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() private fun oneShotChapterListSelector() = "div.chapter-list-element > ul.list-group li.list-group-item" private fun oneShotChapterFromElement(element: Element) = SChapter.create().apply { url = element.select("div.row > .text-right > a").attr("href") @@ -384,7 +384,7 @@ class TuMangaOnline : ConfigurableSource, ParsedHttpSource() { return GET(page.imageUrl!!, imageHeaders) } - override fun imageUrlParse(document: Document) = throw Exception("Not Used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() private fun searchMangaByIdRequest(id: String) = GET("$baseUrl/$PREFIX_LIBRARY/$id", headers) diff --git a/src/es/vcpvmp/src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt b/src/es/vcpvmp/src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt index 6ec528d5d..5c805faf6 100644 --- a/src/es/vcpvmp/src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt +++ b/src/es/vcpvmp/src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt @@ -26,13 +26,13 @@ open class VCPVMP(override val name: String, override val baseUrl: String) : Par .add("Referer", "$baseUrl/") } - 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 popularMangaRequest(page: Int) = GET("$baseUrl/$urlSuffix/page/$page", headers) @@ -78,14 +78,14 @@ open class VCPVMP(override val name: String, override val baseUrl: String) : Par ) } - override fun chapterListSelector() = throw UnsupportedOperationException("Not used") - override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not used") + override fun chapterListSelector() = throw UnsupportedOperationException() + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() protected open val pageListSelector = "div.wp-content p > img:not(noscript img)" override fun pageListParse(document: Document): List = document.select(pageListSelector) .mapIndexed { i, img -> Page(i, "", img.attr("abs:data-src")) } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() protected open val urlSuffix = "" protected open val genreSuffix = "" diff --git a/src/fr/animesama/src/eu/kanade/tachiyomi/extension/fr/animesama/AnimeSama.kt b/src/fr/animesama/src/eu/kanade/tachiyomi/extension/fr/animesama/AnimeSama.kt index 95bdeea2d..045fa1d27 100644 --- a/src/fr/animesama/src/eu/kanade/tachiyomi/extension/fr/animesama/AnimeSama.kt +++ b/src/fr/animesama/src/eu/kanade/tachiyomi/extension/fr/animesama/AnimeSama.kt @@ -101,9 +101,9 @@ class AnimeSama : ParsedHttpSource() { } // Chapters - 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 { val document = response.asJsoup() @@ -159,7 +159,7 @@ class AnimeSama : ParsedHttpSource() { return client.newCall(request).execute() } - 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 imgHeaders = headersBuilder() diff --git a/src/fr/aralosbd/src/eu/kanade/tachiyomi/extension/fr/aralosbd/AralosBD.kt b/src/fr/aralosbd/src/eu/kanade/tachiyomi/extension/fr/aralosbd/AralosBD.kt index b281d5596..ec32d6d75 100644 --- a/src/fr/aralosbd/src/eu/kanade/tachiyomi/extension/fr/aralosbd/AralosBD.kt +++ b/src/fr/aralosbd/src/eu/kanade/tachiyomi/extension/fr/aralosbd/AralosBD.kt @@ -157,7 +157,7 @@ class AralosBD : HttpSource() { } } - override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() private fun authorToString(author: AralosBDAuthor) = author.name private fun tagToString(tag: AralosBDTag) = tag.tag diff --git a/src/fr/fmteam/src/eu/kanade/tachiyomi/extension/fr/fmteam/FMTEAM.kt b/src/fr/fmteam/src/eu/kanade/tachiyomi/extension/fr/fmteam/FMTEAM.kt index bed5cc378..da78a015e 100644 --- a/src/fr/fmteam/src/eu/kanade/tachiyomi/extension/fr/fmteam/FMTEAM.kt +++ b/src/fr/fmteam/src/eu/kanade/tachiyomi/extension/fr/fmteam/FMTEAM.kt @@ -96,7 +96,7 @@ class FMTEAM : HttpSource() { .mapIndexed { i, page -> Page(i, "${results.chapter.url}#${i + 1}", page) } } - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() // Utils private fun fmTeamComicToSManga(comic: FmteamComic): SManga = SManga.create().apply { diff --git a/src/fr/furyosquad/src/eu/kanade/tachiyomi/extension/fr/furyosquad/FuryoSquad.kt b/src/fr/furyosquad/src/eu/kanade/tachiyomi/extension/fr/furyosquad/FuryoSquad.kt index b1ebe54d7..a1d19e070 100644 --- a/src/fr/furyosquad/src/eu/kanade/tachiyomi/extension/fr/furyosquad/FuryoSquad.kt +++ b/src/fr/furyosquad/src/eu/kanade/tachiyomi/extension/fr/furyosquad/FuryoSquad.kt @@ -108,11 +108,11 @@ class FuryoSquad : ParsedHttpSource() { 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 @@ -246,7 +246,7 @@ class FuryoSquad : ParsedHttpSource() { return pages } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun getFilterList() = FilterList() } diff --git a/src/fr/japanread/src/eu/kanade/tachiyomi/extension/fr/japanread/BentoManga.kt b/src/fr/japanread/src/eu/kanade/tachiyomi/extension/fr/japanread/BentoManga.kt index d8b6967d0..00a9abbf7 100644 --- a/src/fr/japanread/src/eu/kanade/tachiyomi/extension/fr/japanread/BentoManga.kt +++ b/src/fr/japanread/src/eu/kanade/tachiyomi/extension/fr/japanread/BentoManga.kt @@ -280,8 +280,8 @@ class BentoManga : ParsedHttpSource(), ConfigurableSource { } .sortedByDescending { it.date_upload } } - override fun chapterListSelector() = throw UnsupportedOperationException("Not Used") - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not Used")*/ + override fun chapterListSelector() = throw UnsupportedOperationException() + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException()*/ // Pages override fun pageListRequest(chapter: SChapter): Request = GET("$baseUrl${chapter.url}", headers) diff --git a/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt b/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt index 73782e68c..e7b542cc0 100644 --- a/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt +++ b/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt @@ -115,8 +115,8 @@ class MangaKawaii : ParsedHttpSource() { } // 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 { val document = response.asJsoup() @@ -178,7 +178,7 @@ class MangaKawaii : ParsedHttpSource() { } return pages } - override fun imageUrlParse(document: Document): String = throw Exception("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun imageRequest(page: Page): Request { val imgHeaders = headersBuilder().apply { add("Referer", baseUrl) diff --git a/src/fr/scanmanga/src/eu/kanade/tachiyomi/extension/fr/scanmanga/ScanManga.kt b/src/fr/scanmanga/src/eu/kanade/tachiyomi/extension/fr/scanmanga/ScanManga.kt index 14a31fa1f..77df5f70c 100644 --- a/src/fr/scanmanga/src/eu/kanade/tachiyomi/extension/fr/scanmanga/ScanManga.kt +++ b/src/fr/scanmanga/src/eu/kanade/tachiyomi/extension/fr/scanmanga/ScanManga.kt @@ -89,9 +89,9 @@ class ScanManga : ParsedHttpSource() { override fun latestUpdatesNextPageSelector(): String? = null // Search - 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 searchMangaParse(response: Response): MangasPage = parseMangaFromJson(response) @@ -166,7 +166,7 @@ class ScanManga : ParsedHttpSource() { return MangasPage(mangaList, hasNextPage = false) } - override fun searchMangaSelector() = throw UnsupportedOperationException("Not used") + override fun searchMangaSelector() = throw UnsupportedOperationException() // Details override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply { @@ -177,9 +177,9 @@ class ScanManga : ParsedHttpSource() { } // Chapters - 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 { val document = response.asJsoup() @@ -207,7 +207,7 @@ class ScanManga : ParsedHttpSource() { } } - 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 imgHeaders = headersBuilder() diff --git a/src/id/bacakomik/src/eu/kanade/tachiyomi/extension/id/bacakomik/BacaKomik.kt b/src/id/bacakomik/src/eu/kanade/tachiyomi/extension/id/bacakomik/BacaKomik.kt index 46ca239d9..17cd8dbb9 100644 --- a/src/id/bacakomik/src/eu/kanade/tachiyomi/extension/id/bacakomik/BacaKomik.kt +++ b/src/id/bacakomik/src/eu/kanade/tachiyomi/extension/id/bacakomik/BacaKomik.kt @@ -200,7 +200,7 @@ class BacaKomik : ParsedHttpSource() { return pages } - 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 = headersBuilder() diff --git a/src/id/doujindesu/src/eu/kanade/tachiyomi/extension/id/doujindesu/DoujinDesu.kt b/src/id/doujindesu/src/eu/kanade/tachiyomi/extension/id/doujindesu/DoujinDesu.kt index bc3615a96..9452a002d 100644 --- a/src/id/doujindesu/src/eu/kanade/tachiyomi/extension/id/doujindesu/DoujinDesu.kt +++ b/src/id/doujindesu/src/eu/kanade/tachiyomi/extension/id/doujindesu/DoujinDesu.kt @@ -426,7 +426,7 @@ class DoujinDesu : ParsedHttpSource(), ConfigurableSource { // More parser stuff override fun imageUrlParse(document: Document): String = - throw UnsupportedOperationException("Not Used") + throw UnsupportedOperationException() override fun pageListParse(document: Document): List { val id = document.select("#reader").attr("data-id") diff --git a/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt b/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt index 34da0e6c6..d4781da45 100644 --- a/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt +++ b/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt @@ -227,7 +227,7 @@ class KomikIndoID : 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( SortFilter(), diff --git a/src/id/komiku/src/eu/kanade/tachiyomi/extension/id/komiku/Komiku.kt b/src/id/komiku/src/eu/kanade/tachiyomi/extension/id/komiku/Komiku.kt index 170bf4398..8c9321234 100644 --- a/src/id/komiku/src/eu/kanade/tachiyomi/extension/id/komiku/Komiku.kt +++ b/src/id/komiku/src/eu/kanade/tachiyomi/extension/id/komiku/Komiku.kt @@ -304,5 +304,5 @@ class Komiku : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() } diff --git a/src/id/mangaku/src/eu/kanade/tachiyomi/extension/id/mangaku/Mangaku.kt b/src/id/mangaku/src/eu/kanade/tachiyomi/extension/id/mangaku/Mangaku.kt index ed8163a47..ea4db4672 100644 --- a/src/id/mangaku/src/eu/kanade/tachiyomi/extension/id/mangaku/Mangaku.kt +++ b/src/id/mangaku/src/eu/kanade/tachiyomi/extension/id/mangaku/Mangaku.kt @@ -214,7 +214,7 @@ class Mangaku : ParsedHttpSource() { }.toList() } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() private val rsxxxRe = Regex(""".............?\+.......""") diff --git a/src/id/mangalay/src/eu/kanade/tachiyomi/extension/id/mangalay/Mangalay.kt b/src/id/mangalay/src/eu/kanade/tachiyomi/extension/id/mangalay/Mangalay.kt index 43e25d7de..b83e88354 100644 --- a/src/id/mangalay/src/eu/kanade/tachiyomi/extension/id/mangalay/Mangalay.kt +++ b/src/id/mangalay/src/eu/kanade/tachiyomi/extension/id/mangalay/Mangalay.kt @@ -48,21 +48,21 @@ class Mangalay : ParsedHttpSource() { } } - override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not Used") + override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException() - override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not Used") + override fun searchMangaNextPageSelector() = throw UnsupportedOperationException() - override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException("Not Used") + override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException() - override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException("Not Used") + override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException() - override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException("Not Used") + override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException() - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() - override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException("Not Used") + override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException() - override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not Used") + override fun latestUpdatesSelector() = throw UnsupportedOperationException() - override fun searchMangaSelector() = throw UnsupportedOperationException("Not Used") + override fun searchMangaSelector() = throw UnsupportedOperationException() } diff --git a/src/id/onepieceberwarna/src/eu/kanade/tachiyomi/extension/id/onepieceberwarna/OnePieceBerwarna.kt b/src/id/onepieceberwarna/src/eu/kanade/tachiyomi/extension/id/onepieceberwarna/OnePieceBerwarna.kt index 740d43e19..dedb4e023 100644 --- a/src/id/onepieceberwarna/src/eu/kanade/tachiyomi/extension/id/onepieceberwarna/OnePieceBerwarna.kt +++ b/src/id/onepieceberwarna/src/eu/kanade/tachiyomi/extension/id/onepieceberwarna/OnePieceBerwarna.kt @@ -67,9 +67,9 @@ class OnePieceBerwarna : ParsedHttpSource() { return MangasPage(list, false) } - 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() override fun mangaDetailsRequest(manga: SManga) = GET(baseUrl, headers) @@ -106,22 +106,22 @@ class OnePieceBerwarna : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = 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 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() // website doesn't have search - 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 searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException("Not used") + override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException() - override fun searchMangaSelector() = throw UnsupportedOperationException("Not used") + override fun searchMangaSelector() = throw UnsupportedOperationException() } diff --git a/src/it/animegdrclub/src/eu/kanade/tachiyomi/extension/it/animegdrclub/AnimeGDRClub.kt b/src/it/animegdrclub/src/eu/kanade/tachiyomi/extension/it/animegdrclub/AnimeGDRClub.kt index fefe2f5f5..fcbff71d2 100644 --- a/src/it/animegdrclub/src/eu/kanade/tachiyomi/extension/it/animegdrclub/AnimeGDRClub.kt +++ b/src/it/animegdrclub/src/eu/kanade/tachiyomi/extension/it/animegdrclub/AnimeGDRClub.kt @@ -173,7 +173,7 @@ class AnimeGDRClub : ParsedHttpSource() { } override fun chapterListSelector() = ".capitoli_cont > a" - override fun chapterFromElement(element: Element) = throw Exception("Not Used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() //endregion //region PAGE loading diff --git a/src/it/digitalteam/src/eu/kanade/tachiyomi/extension/it/digitalteam/DigitalTeam.kt b/src/it/digitalteam/src/eu/kanade/tachiyomi/extension/it/digitalteam/DigitalTeam.kt index 865736bc9..336cf3e9e 100644 --- a/src/it/digitalteam/src/eu/kanade/tachiyomi/extension/it/digitalteam/DigitalTeam.kt +++ b/src/it/digitalteam/src/eu/kanade/tachiyomi/extension/it/digitalteam/DigitalTeam.kt @@ -60,9 +60,9 @@ class DigitalTeam : ParsedHttpSource() { setUrlWithoutDomain(element.select(".manga_title a").first()!!.attr("href")) } - override fun searchMangaFromElement(element: Element): SManga = throw Exception("Not Used") + override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException() - override fun latestUpdatesFromElement(element: Element): SManga = throw Exception("Not Used") + override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException() // NEXT SELECTOR // Not needed diff --git a/src/it/novelleleggere/src/eu/kanade/tachiyomi/extension/it/novelleleggere/NovelleLeggere.kt b/src/it/novelleleggere/src/eu/kanade/tachiyomi/extension/it/novelleleggere/NovelleLeggere.kt index 5462a91b0..72a1a9485 100644 --- a/src/it/novelleleggere/src/eu/kanade/tachiyomi/extension/it/novelleleggere/NovelleLeggere.kt +++ b/src/it/novelleleggere/src/eu/kanade/tachiyomi/extension/it/novelleleggere/NovelleLeggere.kt @@ -31,12 +31,12 @@ class NovelleLeggere : ParsedHttpSource() { } // Latest - override fun latestUpdatesRequest(page: Int): Request = throw Exception("Latest Not Supported") + override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException() - override fun latestUpdatesNextPageSelector(): String = throw Exception("Latest Not Supported") - override fun latestUpdatesSelector(): String = throw Exception("Latest Not Supported") + override fun latestUpdatesNextPageSelector(): String = throw UnsupportedOperationException() + override fun latestUpdatesSelector(): String = throw UnsupportedOperationException() override fun latestUpdatesFromElement(element: Element): SManga = - throw Exception("Latest Not Supported") + throw UnsupportedOperationException() // Search override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = @@ -77,5 +77,5 @@ class NovelleLeggere : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String = - throw Exception("ImgURL Parse Not Used") + throw UnsupportedOperationException() } diff --git a/src/it/zeurelscan/src/eu/kanade/tachiyomi/extension/it/zeurelscan/ZeurelScan.kt b/src/it/zeurelscan/src/eu/kanade/tachiyomi/extension/it/zeurelscan/ZeurelScan.kt index 40c6b7620..4af7d2f46 100644 --- a/src/it/zeurelscan/src/eu/kanade/tachiyomi/extension/it/zeurelscan/ZeurelScan.kt +++ b/src/it/zeurelscan/src/eu/kanade/tachiyomi/extension/it/zeurelscan/ZeurelScan.kt @@ -75,8 +75,8 @@ class ZeurelScan : HttpSource() { MangasPage(mangaList.filter { it.title.contains(query, true) }, false), ) - override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException("Not used") - override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException("Not used") + override fun searchMangaParse(response: Response): MangasPage = throw UnsupportedOperationException() + override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw UnsupportedOperationException() // Details @@ -126,5 +126,5 @@ class ZeurelScan : HttpSource() { Page(i, "", element.attr("abs:src")) } - override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() } diff --git a/src/ja/comicnewtype/src/eu/kanade/tachiyomi/extension/ja/comicnewtype/ComicNewtype.kt b/src/ja/comicnewtype/src/eu/kanade/tachiyomi/extension/ja/comicnewtype/ComicNewtype.kt index 9c71056e5..2a853f9a9 100644 --- a/src/ja/comicnewtype/src/eu/kanade/tachiyomi/extension/ja/comicnewtype/ComicNewtype.kt +++ b/src/ja/comicnewtype/src/eu/kanade/tachiyomi/extension/ja/comicnewtype/ComicNewtype.kt @@ -58,9 +58,9 @@ class ComicNewtype : HttpSource() { return MangasPage(mangas, 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 { val path = when { @@ -126,7 +126,7 @@ class ComicNewtype : HttpSource() { Page(index, imageUrl = baseUrl + newPath) } - override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() override fun getFilterList() = filterList diff --git a/src/ja/ganma/src/eu/kanade/tachiyomi/extension/ja/ganma/Ganma.kt b/src/ja/ganma/src/eu/kanade/tachiyomi/extension/ja/ganma/Ganma.kt index e5055bcf9..2f5b2496a 100644 --- a/src/ja/ganma/src/eu/kanade/tachiyomi/extension/ja/ganma/Ganma.kt +++ b/src/ja/ganma/src/eu/kanade/tachiyomi/extension/ja/ganma/Ganma.kt @@ -59,10 +59,10 @@ open class Ganma : HttpSource(), ConfigurableSource { } override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() override fun searchMangaParse(response: Response): MangasPage = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() // navigate Webview to web page override fun mangaDetailsRequest(manga: SManga) = @@ -99,10 +99,10 @@ open class Ganma : HttpSource(), ConfigurableSource { } final override fun pageListParse(response: Response): List = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() override fun imageUrlParse(response: Response): String = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() protected open class TypeFilter : Filter.Select("Type", arrayOf("Popular", "Completed")) diff --git a/src/ja/mangacross/src/eu/kanade/tachiyomi/extension/ja/mangacross/MangaCross.kt b/src/ja/mangacross/src/eu/kanade/tachiyomi/extension/ja/mangacross/MangaCross.kt index 16055416e..74364193d 100644 --- a/src/ja/mangacross/src/eu/kanade/tachiyomi/extension/ja/mangacross/MangaCross.kt +++ b/src/ja/mangacross/src/eu/kanade/tachiyomi/extension/ja/mangacross/MangaCross.kt @@ -71,7 +71,7 @@ class MangaCross : HttpSource() { } } - override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() private lateinit var tags: List> private var isFetchingTags = false diff --git a/src/ja/nicomanga/src/eu/kanade/tachiyomi/extension/ja/nicomanga/Nicomanga.kt b/src/ja/nicomanga/src/eu/kanade/tachiyomi/extension/ja/nicomanga/Nicomanga.kt index c1273fdd6..239a7d233 100644 --- a/src/ja/nicomanga/src/eu/kanade/tachiyomi/extension/ja/nicomanga/Nicomanga.kt +++ b/src/ja/nicomanga/src/eu/kanade/tachiyomi/extension/ja/nicomanga/Nicomanga.kt @@ -142,5 +142,5 @@ class Nicomanga : HttpSource() { } override fun imageUrlParse(response: Response): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() } diff --git a/src/ja/nicovideoseiga/src/eu/kanade/tachiyomi/extension/ja/nicovideoseiga/NicovideoSeiga.kt b/src/ja/nicovideoseiga/src/eu/kanade/tachiyomi/extension/ja/nicovideoseiga/NicovideoSeiga.kt index 085565809..908a2b4f5 100644 --- a/src/ja/nicovideoseiga/src/eu/kanade/tachiyomi/extension/ja/nicovideoseiga/NicovideoSeiga.kt +++ b/src/ja/nicovideoseiga/src/eu/kanade/tachiyomi/extension/ja/nicovideoseiga/NicovideoSeiga.kt @@ -220,7 +220,7 @@ class NicovideoSeiga : HttpSource() { } override fun imageUrlParse(response: Response): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() private fun imageIntercept(chain: Interceptor.Chain): Response { // Intercept requests for paid manga images only diff --git a/src/ja/nikkangecchan/src/eu/kanade/tachiyomi/extension/ja/nikkangecchan/Nikkangecchan.kt b/src/ja/nikkangecchan/src/eu/kanade/tachiyomi/extension/ja/nikkangecchan/Nikkangecchan.kt index 193c1995f..ccc90a663 100644 --- a/src/ja/nikkangecchan/src/eu/kanade/tachiyomi/extension/ja/nikkangecchan/Nikkangecchan.kt +++ b/src/ja/nikkangecchan/src/eu/kanade/tachiyomi/extension/ja/nikkangecchan/Nikkangecchan.kt @@ -114,15 +114,15 @@ class Nikkangecchan : ParsedHttpSource() { override fun latestUpdatesSelector() = "" - override fun latestUpdatesRequest(page: Int): Request = throw Exception("This method should not be called!") + override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException() - 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 pageListRequest(chapter: SChapter): Request = throw Exception("This method should not be called!") + override fun pageListRequest(chapter: SChapter): Request = throw UnsupportedOperationException() - override fun pageListParse(document: Document): List = throw Exception("This method should not be called!") + override fun pageListParse(document: Document): List = 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/69.0.3497.92 Safari/537.36" diff --git a/src/ja/rawdevart/src/eu/kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt b/src/ja/rawdevart/src/eu/kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt index 16da13309..110297dc5 100644 --- a/src/ja/rawdevart/src/eu/kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt +++ b/src/ja/rawdevart/src/eu/kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt @@ -247,7 +247,7 @@ class Rawdevart : ParsedHttpSource() { return pages } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() private class AuthorFilter : Filter.Text("Author") diff --git a/src/ja/senmanga/src/eu/kanade/tachiyomi/extension/ja/senmanga/SenManga.kt b/src/ja/senmanga/src/eu/kanade/tachiyomi/extension/ja/senmanga/SenManga.kt index 55617b2ed..379415b19 100644 --- a/src/ja/senmanga/src/eu/kanade/tachiyomi/extension/ja/senmanga/SenManga.kt +++ b/src/ja/senmanga/src/eu/kanade/tachiyomi/extension/ja/senmanga/SenManga.kt @@ -157,7 +157,7 @@ class SenManga : ParsedHttpSource() { } override fun imageUrlParse(document: Document) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() override fun getFilterList() = FilterList( GenreFilter(getGenreList()), diff --git a/src/ja/twi4/src/eu/kanade/tachiyomi/extension/ja/twi4/Twi4.kt b/src/ja/twi4/src/eu/kanade/tachiyomi/extension/ja/twi4/Twi4.kt index 4d59fe723..c7c41781b 100644 --- a/src/ja/twi4/src/eu/kanade/tachiyomi/extension/ja/twi4/Twi4.kt +++ b/src/ja/twi4/src/eu/kanade/tachiyomi/extension/ja/twi4/Twi4.kt @@ -263,17 +263,17 @@ class Twi4 : HttpSource() { // All these functions are unused 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 imageUrlParse(response: Response): String = - 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() } diff --git a/src/ko/jmana/src/eu/kanade/tachiyomi/extension/ko/jmana/JMana.kt b/src/ko/jmana/src/eu/kanade/tachiyomi/extension/ko/jmana/JMana.kt index 4462b078f..d33534624 100644 --- a/src/ko/jmana/src/eu/kanade/tachiyomi/extension/ko/jmana/JMana.kt +++ b/src/ko/jmana/src/eu/kanade/tachiyomi/extension/ko/jmana/JMana.kt @@ -54,7 +54,7 @@ class JMana : ConfigurableSource, ParsedHttpSource() { } } - override fun popularMangaNextPageSelector() = throw UnsupportedOperationException("This method should not be called!") + override fun popularMangaNextPageSelector() = throw UnsupportedOperationException() // Do not add page parameter if page is 1 to prevent tracking. override fun popularMangaRequest(page: Int) = GET("$baseUrl/comic_list?page=${page - 1}", headers) @@ -73,7 +73,7 @@ class JMana : ConfigurableSource, ParsedHttpSource() { override fun searchMangaSelector() = popularMangaSelector() override fun searchMangaFromElement(element: Element) = popularMangaFromElement(element) - override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("This method should not be called!") + override fun searchMangaNextPageSelector() = throw UnsupportedOperationException() override fun searchMangaParse(response: Response) = popularMangaParse(response) override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/comic_list?page=${page - 1}&keyword=$query", headers) @@ -190,10 +190,10 @@ class JMana : ConfigurableSource, ParsedHttpSource() { } } - override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("This method should not be called!") + override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException() // We are able to get the image URL directly from the page list - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("This method should not be called!") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() companion object { const val DETAIL_GENRE = "장르 : " diff --git a/src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComic.kt b/src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComic.kt index 9259d6f43..37f6c97d3 100644 --- a/src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComic.kt +++ b/src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComic.kt @@ -35,7 +35,7 @@ class NaverWebtoon : NaverComicBase("webtoon") { override fun latestUpdatesFromElement(element: Element) = popularMangaFromElement(element) override fun mangaDetailsParse(document: Document) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() } class NaverBestChallenge : NaverComicChallengeBase("bestChallenge") { @@ -45,7 +45,7 @@ class NaverBestChallenge : NaverComicChallengeBase("bestChallenge") { override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/api/$mType/list?order=UPDATE&page=$page") override fun mangaDetailsParse(document: Document) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() } class NaverChallenge : NaverComicChallengeBase("challenge") { @@ -69,5 +69,5 @@ class NaverChallenge : NaverComicChallengeBase("challenge") { } override fun mangaDetailsParse(document: Document) = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() } diff --git a/src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComicBase.kt b/src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComicBase.kt index 57bd6e529..e048a936e 100644 --- a/src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComicBase.kt +++ b/src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComicBase.kt @@ -38,9 +38,9 @@ abstract class NaverComicBase(protected val mType: String) : ParsedHttpSource() override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/api/search/$mType?keyword=$query&page=$page") - 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 searchMangaParse(response: Response): MangasPage { val result = json.decodeFromString(response.body.string()) @@ -56,7 +56,7 @@ abstract class NaverComicBase(protected val mType: String) : ParsedHttpSource() return MangasPage(mangas, result.pageInfo.nextPage != 0) } - override fun chapterListSelector() = throw UnsupportedOperationException("Not used") + override fun chapterListSelector() = throw UnsupportedOperationException() override fun chapterListRequest(manga: SManga) = chapterListRequest(manga.url, 1) private fun chapterListRequest(mangaUrl: String, page: Int): Request { val titleId = Uri.parse("$baseUrl$mangaUrl").getQueryParameter("titleId") @@ -85,7 +85,7 @@ abstract class NaverComicBase(protected val mType: String) : ParsedHttpSource() } } - override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() @SuppressLint("SimpleDateFormat") private fun parseChapterDate(date: String): Long { @@ -141,15 +141,15 @@ abstract class NaverComicBase(protected val mType: String) : ParsedHttpSource() } // We are able to get the image URL directly from the page list - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun getFilterList() = FilterList() } abstract class NaverComicChallengeBase(mType: String) : NaverComicBase(mType) { - override fun popularMangaSelector() = throw UnsupportedOperationException("Not used") - override fun popularMangaNextPageSelector() = throw UnsupportedOperationException("Not used") - override fun popularMangaFromElement(element: Element) = throw UnsupportedOperationException("Not used") + override fun popularMangaSelector() = throw UnsupportedOperationException() + override fun popularMangaNextPageSelector() = throw UnsupportedOperationException() + override fun popularMangaFromElement(element: Element) = throw UnsupportedOperationException() override fun popularMangaParse(response: Response): MangasPage { val apiMangaResponse = json.decodeFromString(response.body.string()) val mangas = apiMangaResponse.list.map { diff --git a/src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt b/src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt index a880241ab..319575b2e 100644 --- a/src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt +++ b/src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt @@ -258,7 +258,7 @@ abstract class NewToki( override fun latestUpdatesNextPageSelector() = ".pg_end" // We are able to get the image URL directly from the page list - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("This method should not be called!") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun setupPreferenceScreen(screen: androidx.preference.PreferenceScreen) { getPreferencesInternal(screen.context).map(screen::addPreference) diff --git a/src/ko/toonkor/src/eu/kanade/tachiyomi/extension/ko/toonkor/Toonkor.kt b/src/ko/toonkor/src/eu/kanade/tachiyomi/extension/ko/toonkor/Toonkor.kt index 3c7e68e10..68af6aeb0 100644 --- a/src/ko/toonkor/src/eu/kanade/tachiyomi/extension/ko/toonkor/Toonkor.kt +++ b/src/ko/toonkor/src/eu/kanade/tachiyomi/extension/ko/toonkor/Toonkor.kt @@ -148,7 +148,7 @@ class Toonkor : ConfigurableSource, ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Filters diff --git a/src/pt/bakai/src/eu/kanade/tachiyomi/extension/pt/bakai/Bakai.kt b/src/pt/bakai/src/eu/kanade/tachiyomi/extension/pt/bakai/Bakai.kt index b37ed49a1..686915834 100644 --- a/src/pt/bakai/src/eu/kanade/tachiyomi/extension/pt/bakai/Bakai.kt +++ b/src/pt/bakai/src/eu/kanade/tachiyomi/extension/pt/bakai/Bakai.kt @@ -52,7 +52,7 @@ class Bakai : ParsedHttpSource() { // =============================== Latest =============================== override fun latestUpdatesRequest(page: Int): Request { - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() } override fun latestUpdatesSelector(): String { @@ -60,7 +60,7 @@ class Bakai : ParsedHttpSource() { } override fun latestUpdatesFromElement(element: Element): SManga { - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() } override fun latestUpdatesNextPageSelector(): String? { @@ -139,7 +139,7 @@ class Bakai : ParsedHttpSource() { } override fun chapterFromElement(element: Element): SChapter { - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() } // =============================== Pages ================================ @@ -151,7 +151,7 @@ class Bakai : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String { - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() } companion object { diff --git a/src/pt/bruttal/src/eu/kanade/tachiyomi/extension/pt/bruttal/Bruttal.kt b/src/pt/bruttal/src/eu/kanade/tachiyomi/extension/pt/bruttal/Bruttal.kt index ade94131c..4e6a09f94 100644 --- a/src/pt/bruttal/src/eu/kanade/tachiyomi/extension/pt/bruttal/Bruttal.kt +++ b/src/pt/bruttal/src/eu/kanade/tachiyomi/extension/pt/bruttal/Bruttal.kt @@ -173,10 +173,10 @@ class Bruttal : 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() private inline fun Response.parseAs(): T = use { json.decodeFromString(body.string()) diff --git a/src/pt/lermanga/src/eu/kanade/tachiyomi/extension/pt/lermanga/LerManga.kt b/src/pt/lermanga/src/eu/kanade/tachiyomi/extension/pt/lermanga/LerManga.kt index 92658904e..c4d7b782a 100644 --- a/src/pt/lermanga/src/eu/kanade/tachiyomi/extension/pt/lermanga/LerManga.kt +++ b/src/pt/lermanga/src/eu/kanade/tachiyomi/extension/pt/lermanga/LerManga.kt @@ -110,11 +110,11 @@ class LerManga : ParsedHttpSource() { return MangasPage(mangaList, hasNextPage) } - 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 getMangaUrl(manga: SManga): String = baseUrl + manga.url @@ -135,7 +135,7 @@ class LerManga : ParsedHttpSource() { return response.parseAs>().first().toSManga() } - override fun mangaDetailsParse(document: Document): SManga = throw UnsupportedOperationException("Not used") + override fun mangaDetailsParse(document: Document): SManga = throw UnsupportedOperationException() override fun chapterListSelector() = "div.manga-chapters div.single-chapter" diff --git a/src/pt/mundohentai/src/eu/kanade/tachiyomi/extension/pt/mundohentai/MundoHentai.kt b/src/pt/mundohentai/src/eu/kanade/tachiyomi/extension/pt/mundohentai/MundoHentai.kt index bfecf2eda..ddda9962a 100644 --- a/src/pt/mundohentai/src/eu/kanade/tachiyomi/extension/pt/mundohentai/MundoHentai.kt +++ b/src/pt/mundohentai/src/eu/kanade/tachiyomi/extension/pt/mundohentai/MundoHentai.kt @@ -197,11 +197,11 @@ class MundoHentai : ParsedHttpSource() { Tag("Yaoi", "yaoi"), ) - override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException("Not used") + override fun latestUpdatesRequest(page: Int): Request = 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() } diff --git a/src/pt/opex/src/eu/kanade/tachiyomi/extension/pt/opex/OnePieceEx.kt b/src/pt/opex/src/eu/kanade/tachiyomi/extension/pt/opex/OnePieceEx.kt index 00428f5b0..27a5bc468 100644 --- a/src/pt/opex/src/eu/kanade/tachiyomi/extension/pt/opex/OnePieceEx.kt +++ b/src/pt/opex/src/eu/kanade/tachiyomi/extension/pt/opex/OnePieceEx.kt @@ -226,13 +226,13 @@ class OnePieceEx : ParsedHttpSource() { return GET(page.imageUrl!!, newHeaders) } - override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException("Not used") + override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException() - override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used") + override fun latestUpdatesSelector() = throw UnsupportedOperationException() - override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException("Not used") + override fun latestUpdatesFromElement(element: Element): SManga = throw UnsupportedOperationException() - override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException("Not used") + override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException() companion object { private const val ACCEPT = "text/html,application/xhtml+xml,application/xml;q=0.9," + diff --git a/src/ru/acomics/src/eu/kanade/tachiyomi/extension/ru/acomics/AComics.kt b/src/ru/acomics/src/eu/kanade/tachiyomi/extension/ru/acomics/AComics.kt index 837731e95..d823e1e4a 100644 --- a/src/ru/acomics/src/eu/kanade/tachiyomi/extension/ru/acomics/AComics.kt +++ b/src/ru/acomics/src/eu/kanade/tachiyomi/extension/ru/acomics/AComics.kt @@ -146,9 +146,9 @@ class AComics : ParsedHttpSource() { return res } - override fun chapterListSelector(): Nothing = throw Exception("Not used") + override fun chapterListSelector(): Nothing = 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 { val imageElement = document.select("img#mainImage").first()!! diff --git a/src/ru/desu/src/eu/kanade/tachiyomi/extension/ru/desu/Desu.kt b/src/ru/desu/src/eu/kanade/tachiyomi/extension/ru/desu/Desu.kt index f8eb219c5..673eeff5a 100644 --- a/src/ru/desu/src/eu/kanade/tachiyomi/extension/ru/desu/Desu.kt +++ b/src/ru/desu/src/eu/kanade/tachiyomi/extension/ru/desu/Desu.kt @@ -278,7 +278,7 @@ class Desu : ConfigurableSource, HttpSource() { } override fun imageUrlParse(response: Response) = - throw UnsupportedOperationException("This method should not be called!") + throw UnsupportedOperationException() private fun searchMangaByIdRequest(id: String): Request { return GET("$baseUrl$API_URL/$id", headers) diff --git a/src/ru/mangabook/src/eu/kanade/tachiyomi/extension/ru/mangabook/MangaBook.kt b/src/ru/mangabook/src/eu/kanade/tachiyomi/extension/ru/mangabook/MangaBook.kt index f5864915a..2f844c090 100644 --- a/src/ru/mangabook/src/eu/kanade/tachiyomi/extension/ru/mangabook/MangaBook.kt +++ b/src/ru/mangabook/src/eu/kanade/tachiyomi/extension/ru/mangabook/MangaBook.kt @@ -182,7 +182,7 @@ class MangaBook : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document) = throw Exception("imageUrlParse Not Used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() // Filters private class CheckFilter(name: String, val id: String) : Filter.CheckBox(name) diff --git a/src/ru/mangapoisk/src/eu/kanade/tachiyomi/extension/ru/mangapoisk/MangaPoisk.kt b/src/ru/mangapoisk/src/eu/kanade/tachiyomi/extension/ru/mangapoisk/MangaPoisk.kt index f4031729f..088dd0240 100644 --- a/src/ru/mangapoisk/src/eu/kanade/tachiyomi/extension/ru/mangapoisk/MangaPoisk.kt +++ b/src/ru/mangapoisk/src/eu/kanade/tachiyomi/extension/ru/mangapoisk/MangaPoisk.kt @@ -283,7 +283,7 @@ class MangaPoisk : ParsedHttpSource() { CheckFilter("бара", "8119"), ) - override fun imageUrlParse(document: Document) = throw Exception("Not Used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() - override fun chapterFromElement(element: Element): SChapter = throw Exception("Not Used") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() } diff --git a/src/ru/newbie/src/eu/kanade/tachiyomi/extension/ru/newbie/Newbie.kt b/src/ru/newbie/src/eu/kanade/tachiyomi/extension/ru/newbie/Newbie.kt index 230912061..dcc8e5f86 100644 --- a/src/ru/newbie/src/eu/kanade/tachiyomi/extension/ru/newbie/Newbie.kt +++ b/src/ru/newbie/src/eu/kanade/tachiyomi/extension/ru/newbie/Newbie.kt @@ -335,7 +335,7 @@ class Newbie : ConfigurableSource, HttpSource() { } } - 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, branch: Long): List { var chapters = json.decodeFromString>>(response.body.string()).items @@ -352,7 +352,7 @@ class Newbie : ConfigurableSource, HttpSource() { } } } - override fun chapterListRequest(manga: SManga): Request = throw UnsupportedOperationException("chapterListRequest(branch: Long)") + override fun chapterListRequest(manga: SManga): Request = throw UnsupportedOperationException() private fun chapterListRequest(branch: Long): Request { return GET( "$API_URL/branches/$branch/chapters?reverse=true&size=1000000", @@ -380,7 +380,7 @@ class Newbie : ConfigurableSource, HttpSource() { return result } - override fun pageListParse(response: Response): List = throw Exception("Not used") + override fun pageListParse(response: Response): List = throw UnsupportedOperationException() override fun fetchPageList(chapter: SChapter): Observable> { return client.newCall(pageListRequest(chapter)) .asObservableSuccess() diff --git a/src/ru/nudemoon/src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt b/src/ru/nudemoon/src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt index 4b505e65c..a3a6da46a 100644 --- a/src/ru/nudemoon/src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt +++ b/src/ru/nudemoon/src/eu/kanade/tachiyomi/extension/ru/nudemoon/Nudemoon.kt @@ -235,9 +235,9 @@ class Nudemoon : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document) = throw Exception("Not Used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() - override fun pageListParse(document: Document): List = throw Exception("Not Used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() private class Genre(name: String, val id: String = name.replace(' ', '_')) : Filter.CheckBox(name.replaceFirstChar { it.uppercaseChar() }) private class GenreList(genres: List) : Filter.Group("Тэги", genres) diff --git a/src/ru/unicomics/src/eu/kanade/tachiyomi/extension/ru/unicomics/UniComics.kt b/src/ru/unicomics/src/eu/kanade/tachiyomi/extension/ru/unicomics/UniComics.kt index 248d71843..025b20903 100644 --- a/src/ru/unicomics/src/eu/kanade/tachiyomi/extension/ru/unicomics/UniComics.kt +++ b/src/ru/unicomics/src/eu/kanade/tachiyomi/extension/ru/unicomics/UniComics.kt @@ -253,7 +253,7 @@ class UniComics : ParsedHttpSource() { return chapter } - override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() override fun pageListRequest(chapter: SChapter): Request { return GET(baseDefaultUrl + chapter.url, headers) diff --git a/src/th/mikudoujin/src/eu/kanade/tachiyomi/extension/th/mikudoujin/MikuDoujin.kt b/src/th/mikudoujin/src/eu/kanade/tachiyomi/extension/th/mikudoujin/MikuDoujin.kt index 4267e05a6..9f0ef0522 100644 --- a/src/th/mikudoujin/src/eu/kanade/tachiyomi/extension/th/mikudoujin/MikuDoujin.kt +++ b/src/th/mikudoujin/src/eu/kanade/tachiyomi/extension/th/mikudoujin/MikuDoujin.kt @@ -75,13 +75,13 @@ class MikuDoujin : ParsedHttpSource() { } override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = - throw Exception("Unused") + throw UnsupportedOperationException() - override fun searchMangaSelector(): String = throw Exception("Unused") + override fun searchMangaSelector(): String = throw UnsupportedOperationException() - override fun searchMangaFromElement(element: Element): SManga = throw Exception("Unused") + override fun searchMangaFromElement(element: Element): SManga = throw UnsupportedOperationException() - override fun searchMangaNextPageSelector(): String = throw Exception("Unused") + override fun searchMangaNextPageSelector(): String = throw UnsupportedOperationException() override fun fetchSearchManga( page: Int, @@ -143,7 +143,7 @@ class MikuDoujin : ParsedHttpSource() { override fun chapterListSelector() = "table.table-episode tr" - override fun chapterFromElement(element: Element): SChapter = throw Exception("Unused") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() private fun chapterFromElementWithIndex(element: Element, idx: Int, manga: SManga): SChapter { val chapter = SChapter.create() @@ -206,7 +206,7 @@ class MikuDoujin : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun getFilterList() = FilterList() } diff --git a/src/th/nekopost/src/eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt b/src/th/nekopost/src/eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt index 69cbedaab..b8bccf779 100644 --- a/src/th/nekopost/src/eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt +++ b/src/th/nekopost/src/eu/kanade/tachiyomi/extension/th/nekopost/Nekopost.kt @@ -54,13 +54,13 @@ class Nekopost : HttpSource() { else -> SManga.UNKNOWN } - 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 imageUrlParse(response: Response): String = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() - override fun imageUrlRequest(page: Page): Request = throw UnsupportedOperationException("Not used.") + override fun imageUrlRequest(page: Page): Request = throw UnsupportedOperationException() override fun mangaDetailsRequest(manga: SManga): Request { return GET("$projectDataEndpoint/${manga.url}", headers) diff --git a/src/th/niceoppai/src/eu/kanade/tachiyomi/extension/th/niceoppai/Niceoppai.kt b/src/th/niceoppai/src/eu/kanade/tachiyomi/extension/th/niceoppai/Niceoppai.kt index f98692c92..53370deb7 100644 --- a/src/th/niceoppai/src/eu/kanade/tachiyomi/extension/th/niceoppai/Niceoppai.kt +++ b/src/th/niceoppai/src/eu/kanade/tachiyomi/extension/th/niceoppai/Niceoppai.kt @@ -188,7 +188,7 @@ class Niceoppai : ParsedHttpSource() { } } override fun chapterListSelector() = "ul.lst li.lng_" - override fun chapterFromElement(element: Element): SChapter = throw Exception("Unused") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() private fun chapterFromElementWithIndex(element: Element, idx: Int, manga: SManga): SChapter { val chapter = SChapter.create() @@ -261,7 +261,7 @@ class Niceoppai : ParsedHttpSource() { } } override fun imageUrlParse(document: Document): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() // Filter private val orderByFilterTitle: String = "Order By เรียกตาม" diff --git a/src/tr/MangaDenizi/src/eu/kanade/tachiyomi/extension/tr/mangadenizi/MangaDenizi.kt b/src/tr/MangaDenizi/src/eu/kanade/tachiyomi/extension/tr/mangadenizi/MangaDenizi.kt index 76ebdf837..744bad448 100644 --- a/src/tr/MangaDenizi/src/eu/kanade/tachiyomi/extension/tr/mangadenizi/MangaDenizi.kt +++ b/src/tr/MangaDenizi/src/eu/kanade/tachiyomi/extension/tr/mangadenizi/MangaDenizi.kt @@ -69,7 +69,7 @@ class MangaDenizi : ParsedHttpSource() { override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = GET("$baseUrl/search?query=$query", headers) override fun searchMangaNextPageSelector() = "Unused" - override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException("Unused") + override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException() override fun searchMangaParse(response: Response): MangasPage { val mangaListJson = Json.decodeFromString(response.body.string()) @@ -120,7 +120,7 @@ class MangaDenizi : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList() = FilterList() diff --git a/src/tr/mangaship/src/eu/kanade/tachiyomi/extension/tr/mangaship/MangaShip.kt b/src/tr/mangaship/src/eu/kanade/tachiyomi/extension/tr/mangaship/MangaShip.kt index a88d4c02f..7ee9abb40 100644 --- a/src/tr/mangaship/src/eu/kanade/tachiyomi/extension/tr/mangaship/MangaShip.kt +++ b/src/tr/mangaship/src/eu/kanade/tachiyomi/extension/tr/mangaship/MangaShip.kt @@ -103,5 +103,5 @@ class MangaShip : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() } diff --git a/src/tr/serimanga/src/eu/kanade/tachiyomi/extension/tr/serimanga/SeriManga.kt b/src/tr/serimanga/src/eu/kanade/tachiyomi/extension/tr/serimanga/SeriManga.kt index adec6abe7..2f393d682 100644 --- a/src/tr/serimanga/src/eu/kanade/tachiyomi/extension/tr/serimanga/SeriManga.kt +++ b/src/tr/serimanga/src/eu/kanade/tachiyomi/extension/tr/serimanga/SeriManga.kt @@ -121,7 +121,7 @@ class SeriManga : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList() = FilterList() } diff --git a/src/vi/blogtruyen/src/eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt b/src/vi/blogtruyen/src/eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt index d4fb46b72..e6c65a75f 100644 --- a/src/vi/blogtruyen/src/eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt +++ b/src/vi/blogtruyen/src/eu/kanade/tachiyomi/extension/vi/blogtruyen/BlogTruyen.kt @@ -74,7 +74,7 @@ class BlogTruyen : ParsedHttpSource() { override fun popularMangaSelector() = ".list .tiptip" override fun popularMangaFromElement(element: Element): SManga = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() private fun popularMangaFromElement(element: Element, tiptip: Element) = SManga.create().apply { val anchor = element.selectFirst("a")!! @@ -206,7 +206,7 @@ class BlogTruyen : ParsedHttpSource() { override fun searchMangaSelector() = popularMangaSelector() override fun searchMangaFromElement(element: Element): SManga = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() private fun searchMangaFromElement(element: Element, tiptip: Element) = popularMangaFromElement(element, tiptip) @@ -299,7 +299,7 @@ class BlogTruyen : ParsedHttpSource() { override fun chapterListSelector() = "div.list-wrap > p" - override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException("Not used") + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() private fun chapterFromElement(element: Element, title: String): SChapter = SChapter.create().apply { val anchor = element.select("span > a").first()!! @@ -352,7 +352,7 @@ class BlogTruyen : ParsedHttpSource() { return pages } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() private class Status : Filter.Select( "Status", diff --git a/src/vi/lxhentai/src/eu/kanade/tachiyomi/extension/vi/lxhentai/LxHentai.kt b/src/vi/lxhentai/src/eu/kanade/tachiyomi/extension/vi/lxhentai/LxHentai.kt index e424ce81a..0411a5830 100644 --- a/src/vi/lxhentai/src/eu/kanade/tachiyomi/extension/vi/lxhentai/LxHentai.kt +++ b/src/vi/lxhentai/src/eu/kanade/tachiyomi/extension/vi/lxhentai/LxHentai.kt @@ -180,7 +180,7 @@ class LxHentai : ParsedHttpSource() { .select("div.text-center img.lazy") .mapIndexed { idx, element -> Page(idx, "", element.attr("abs:src")) } - override fun imageUrlParse(document: Document) = throw Exception("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() private val dateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.US) diff --git a/src/vi/mangaxy/src/eu/kanade/tachiyomi/extension/vi/MangaXY/MangaXY.kt b/src/vi/mangaxy/src/eu/kanade/tachiyomi/extension/vi/MangaXY/MangaXY.kt index 6430a022d..07d9ec378 100644 --- a/src/vi/mangaxy/src/eu/kanade/tachiyomi/extension/vi/MangaXY/MangaXY.kt +++ b/src/vi/mangaxy/src/eu/kanade/tachiyomi/extension/vi/MangaXY/MangaXY.kt @@ -309,7 +309,7 @@ class MangaXY : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() open class Genre(name: String, val id: String) : Filter.TriState(name) private class GenreList(genres: List) : Filter.Group("Thể loại", genres) diff --git a/src/vi/truyengihot/src/eu/kanade/tachiyomi/extension/vi/truyengihot/TruyenGiHot.kt b/src/vi/truyengihot/src/eu/kanade/tachiyomi/extension/vi/truyengihot/TruyenGiHot.kt index af80239d5..1314d2a54 100644 --- a/src/vi/truyengihot/src/eu/kanade/tachiyomi/extension/vi/truyengihot/TruyenGiHot.kt +++ b/src/vi/truyengihot/src/eu/kanade/tachiyomi/extension/vi/truyengihot/TruyenGiHot.kt @@ -252,7 +252,7 @@ class TruyenGiHot : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun getFilterList(): FilterList = FilterList( SearchTypeFilter(), diff --git a/src/vi/truyenqq/src/eu/kanade/tachiyomi/extension/vi/truyenqq/TruyenQQ.kt b/src/vi/truyenqq/src/eu/kanade/tachiyomi/extension/vi/truyenqq/TruyenQQ.kt index 508513d46..578dd37bf 100644 --- a/src/vi/truyenqq/src/eu/kanade/tachiyomi/extension/vi/truyenqq/TruyenQQ.kt +++ b/src/vi/truyenqq/src/eu/kanade/tachiyomi/extension/vi/truyenqq/TruyenQQ.kt @@ -141,7 +141,7 @@ class TruyenQQ : ParsedHttpSource() { } override fun imageUrlParse(document: Document): String = - throw UnsupportedOperationException("Not used") + throw UnsupportedOperationException() override fun getFilterList(): FilterList = FilterList( Filter.Header("Không dùng chung với tìm kiếm bằng tên"), diff --git a/src/vi/yurineko/src/eu/kanade/tachiyomi/extension/vi/yurineko/YuriNeko.kt b/src/vi/yurineko/src/eu/kanade/tachiyomi/extension/vi/yurineko/YuriNeko.kt index b929e7cff..925c53436 100644 --- a/src/vi/yurineko/src/eu/kanade/tachiyomi/extension/vi/yurineko/YuriNeko.kt +++ b/src/vi/yurineko/src/eu/kanade/tachiyomi/extension/vi/yurineko/YuriNeko.kt @@ -91,9 +91,9 @@ class YuriNeko : HttpSource() { return mangaListDto.toMangasPage(currentPage) } - override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used") + override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException() - override fun latestUpdatesParse(response: Response): MangasPage = throw Exception("Not used") + override fun latestUpdatesParse(response: Response): MangasPage = throw UnsupportedOperationException() override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable { return when { @@ -193,7 +193,7 @@ class YuriNeko : HttpSource() { override fun pageListParse(response: Response): List = response.parseAs().toPageList() - override fun imageUrlParse(response: Response): String = throw Exception("Not used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() open class UriPartFilter(displayName: String, private val vals: Array>) : Filter.Select(displayName, vals.map { it.first }.toTypedArray()) { diff --git a/src/zh/baozimanhua/src/eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt b/src/zh/baozimanhua/src/eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt index 3c3ca6a76..f7ff495ff 100644 --- a/src/zh/baozimanhua/src/eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt +++ b/src/zh/baozimanhua/src/eu/kanade/tachiyomi/extension/zh/baozimanhua/Baozi.kt @@ -65,7 +65,7 @@ class Baozi : ParsedHttpSource(), ConfigurableSource { override fun headersBuilder() = super.headersBuilder() .add("Referer", "https://$domain/") - override fun chapterListSelector() = throw UnsupportedOperationException("Not used.") + override fun chapterListSelector() = throw UnsupportedOperationException() override fun chapterListParse(response: Response): List { val document = response.asJsoup() @@ -171,15 +171,15 @@ class Baozi : ParsedHttpSource(), ConfigurableSource { return GET(url, headers) } - override fun pageListParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun pageListParse(document: Document) = throw UnsupportedOperationException() - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(document: Document) = 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 fetchSearchManga(page: Int, query: String, filters: FilterList): Observable { return if (query.startsWith(ID_SEARCH_PREFIX)) { diff --git a/src/zh/bh3/src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt b/src/zh/bh3/src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt index 492809163..00660fd38 100644 --- a/src/zh/bh3/src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt +++ b/src/zh/bh3/src/eu/kanade/tachiyomi/extension/zh/bh3/BH3.kt @@ -57,7 +57,7 @@ class BH3 : ParsedHttpSource() { override fun popularMangaRequest(page: Int) = GET("$baseUrl/book", headers) - override fun latestUpdatesRequest(page: Int) = throw Exception("Not Used") + override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException() override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw Exception("No search") @@ -77,7 +77,7 @@ class BH3 : ParsedHttpSource() { return manga } - override fun chapterFromElement(element: Element) = throw Exception("Not Used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() override fun chapterListParse(response: Response): List { val jsonResult = json.parseToJsonElement(response.body.string()).jsonArray diff --git a/src/zh/boylove/src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLove.kt b/src/zh/boylove/src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLove.kt index bbe746995..c0b1a425f 100644 --- a/src/zh/boylove/src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLove.kt +++ b/src/zh/boylove/src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLove.kt @@ -90,7 +90,7 @@ class BoyLove : HttpSource(), ConfigurableSource { response.parseAs>().list.find { it.id == id }!!.toSManga() } - override fun mangaDetailsParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun mangaDetailsParse(response: Response) = throw UnsupportedOperationException() override fun chapterListRequest(manga: SManga): Request = GET("$baseUrl/home/api/chapter_list/tp/${manga.url}-0-0-10", headers) @@ -124,8 +124,8 @@ class BoyLove : HttpSource(), ConfigurableSource { urlList.mapIndexed { index, imageUrl -> Page(index, imageUrl = imageUrl) } } - override fun pageListParse(response: Response) = throw UnsupportedOperationException("Not used.") - override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun pageListParse(response: Response) = throw UnsupportedOperationException() + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() private inline fun Response.parseAs(): T = use { json.decodeFromStream>(body.byteStream()).result diff --git a/src/zh/comicabc/src/eu/kanade/tachiyomi/extension/zh/comicabc/Comicabc.kt b/src/zh/comicabc/src/eu/kanade/tachiyomi/extension/zh/comicabc/Comicabc.kt index 02e2c23be..566a81e6b 100644 --- a/src/zh/comicabc/src/eu/kanade/tachiyomi/extension/zh/comicabc/Comicabc.kt +++ b/src/zh/comicabc/src/eu/kanade/tachiyomi/extension/zh/comicabc/Comicabc.kt @@ -94,8 +94,8 @@ class Comicabc : ParsedHttpSource() { quickJs.close() } - override fun pageListParse(document: Document): List = throw Exception("Not Used") - override fun imageUrlParse(document: Document): String = throw Exception("Not Used") + override fun pageListParse(document: Document): List = throw UnsupportedOperationException() + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() companion object { // Functions required by script in pageListParse() diff --git a/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt b/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt index a5ed90610..a580b8787 100644 --- a/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt +++ b/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt @@ -143,7 +143,7 @@ class Happymh : HttpSource(), ConfigurableSource { } } - override fun imageUrlParse(response: Response): String = throw Exception("Not Used") + override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() override fun setupPreferenceScreen(screen: PreferenceScreen) { val context = screen.context diff --git a/src/zh/iqiyi/src/eu/kanade/tachiyomi/extension/zh/iqiyi/Iqiyi.kt b/src/zh/iqiyi/src/eu/kanade/tachiyomi/extension/zh/iqiyi/Iqiyi.kt index 80731361a..b0408c613 100644 --- a/src/zh/iqiyi/src/eu/kanade/tachiyomi/extension/zh/iqiyi/Iqiyi.kt +++ b/src/zh/iqiyi/src/eu/kanade/tachiyomi/extension/zh/iqiyi/Iqiyi.kt @@ -95,8 +95,8 @@ class Iqiyi : ParsedHttpSource() { }.reversed() } - override fun chapterListSelector(): String = throw Exception("Not Used") - override fun chapterFromElement(element: Element): SChapter = throw Exception("Not Used") + override fun chapterListSelector(): String = throw UnsupportedOperationException() + override fun chapterFromElement(element: Element): SChapter = throw UnsupportedOperationException() // Pages @@ -113,5 +113,5 @@ class Iqiyi : ParsedHttpSource() { } } - override fun imageUrlParse(document: Document): String = throw Exception("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() } diff --git a/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt b/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt index 287a32ea7..786b7c659 100644 --- a/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt +++ b/src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt @@ -256,7 +256,7 @@ class Jinmantiantang : ParsedHttpSource(), ConfigurableSource { return internalParse(document, mutableListOf()) } - override fun imageUrlParse(document: Document): String = throw Exception("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() // Filters // 按照类别信息进行检索 diff --git a/src/zh/kuaikanmanhua/src/eu/kanade/tachiyomi/extension/zh/kuaikanmanhua/Kuaikanmanhua.kt b/src/zh/kuaikanmanhua/src/eu/kanade/tachiyomi/extension/zh/kuaikanmanhua/Kuaikanmanhua.kt index 0b7ecd599..b0417b2ea 100644 --- a/src/zh/kuaikanmanhua/src/eu/kanade/tachiyomi/extension/zh/kuaikanmanhua/Kuaikanmanhua.kt +++ b/src/zh/kuaikanmanhua/src/eu/kanade/tachiyomi/extension/zh/kuaikanmanhua/Kuaikanmanhua.kt @@ -235,7 +235,7 @@ class Kuaikanmanhua : HttpSource() { ) override fun imageUrlParse(response: Response): String { - throw Exception("Not used") + throw UnsupportedOperationException() } private class GenreFilter : UriPartFilter( diff --git a/src/zh/manhuadb/src/eu/kanade/tachiyomi/extension/zh/manhuadb/MDB.kt b/src/zh/manhuadb/src/eu/kanade/tachiyomi/extension/zh/manhuadb/MDB.kt index b1d18ec1f..d7d08d6cf 100644 --- a/src/zh/manhuadb/src/eu/kanade/tachiyomi/extension/zh/manhuadb/MDB.kt +++ b/src/zh/manhuadb/src/eu/kanade/tachiyomi/extension/zh/manhuadb/MDB.kt @@ -64,7 +64,7 @@ abstract class MDB( override fun searchMangaSelector() = "div.comic-main-section > div.row > div" override fun searchMangaFromElement(element: Element) = popularMangaFromElement(element) final override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = - throw UnsupportedOperationException("Not used.") + throw UnsupportedOperationException() protected open fun transformTitle(title: String) = title protected abstract val authorSelector: String @@ -114,7 +114,7 @@ abstract class MDB( protected abstract fun parseImages(imgData: String, readerConfig: Element): List - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() protected class Category(val name: String, private val values: Array, private val params: List) { fun toFilter() = CategoryFilter(name, values, params) diff --git a/src/zh/manhuadb/src/eu/kanade/tachiyomi/extension/zh/manhuadb/ManhuaDB.kt b/src/zh/manhuadb/src/eu/kanade/tachiyomi/extension/zh/manhuadb/ManhuaDB.kt index 679acdbbb..124db5533 100644 --- a/src/zh/manhuadb/src/eu/kanade/tachiyomi/extension/zh/manhuadb/ManhuaDB.kt +++ b/src/zh/manhuadb/src/eu/kanade/tachiyomi/extension/zh/manhuadb/ManhuaDB.kt @@ -25,10 +25,10 @@ class ManhuaDB : MDB("漫画DB", "https://www.manhuadb.com"), ConfigurableSource override fun popularMangaNextPageSelector() = "nav > div.form-inline > :nth-last-child(2):not(.disabled)" - 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 val authorSelector = "a.comic-creator" override fun transformDescription(description: String) = description.substringBeforeLast("欢迎在漫画DB观看") diff --git a/src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Manhuagui.kt b/src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Manhuagui.kt index 48168f9c9..70dbb8587 100644 --- a/src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Manhuagui.kt +++ b/src/zh/manhuagui/src/eu/kanade/tachiyomi/extension/zh/manhuagui/Manhuagui.kt @@ -284,7 +284,7 @@ class Manhuagui( return manga } - override fun chapterFromElement(element: Element) = throw UnsupportedOperationException("Not used.") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() override fun chapterListParse(response: Response): List { val document = response.asJsoup() val chapters = mutableListOf() @@ -411,7 +411,7 @@ class Manhuagui( } } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun setupPreferenceScreen(screen: androidx.preference.PreferenceScreen) { val mainSiteRateLimitPreference = androidx.preference.ListPreference(screen.context).apply { diff --git a/src/zh/manhuaren/src/eu/kanade/tachiyomi/extension/zh/manhuaren/Manhuaren.kt b/src/zh/manhuaren/src/eu/kanade/tachiyomi/extension/zh/manhuaren/Manhuaren.kt index 775330bf3..cfb9df130 100644 --- a/src/zh/manhuaren/src/eu/kanade/tachiyomi/extension/zh/manhuaren/Manhuaren.kt +++ b/src/zh/manhuaren/src/eu/kanade/tachiyomi/extension/zh/manhuaren/Manhuaren.kt @@ -512,7 +512,7 @@ class Manhuaren : HttpSource() { return myGet(url) } - override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("This method should not be called!") + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() override fun imageRequest(page: Page): Request { val newHeaders = headersBuilder() diff --git a/src/zh/manwa/src/eu/kanade/tachiyomi/extension/zh/manwa/Manwa.kt b/src/zh/manwa/src/eu/kanade/tachiyomi/extension/zh/manwa/Manwa.kt index ad2d11d8e..692b8fc82 100644 --- a/src/zh/manwa/src/eu/kanade/tachiyomi/extension/zh/manwa/Manwa.kt +++ b/src/zh/manwa/src/eu/kanade/tachiyomi/extension/zh/manwa/Manwa.kt @@ -105,9 +105,9 @@ class Manwa : ParsedHttpSource(), ConfigurableSource { return MangasPage(mangas, totalPage > currentPage + 15) } - override fun latestUpdatesNextPageSelector() = throw Exception("Not used") - override fun latestUpdatesSelector() = throw Exception("Not used") - override fun latestUpdatesFromElement(element: Element) = throw Exception("Not used") + override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException() + override fun latestUpdatesSelector() = throw UnsupportedOperationException() + override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException() // Search @@ -178,7 +178,7 @@ class Manwa : ParsedHttpSource(), ConfigurableSource { } } - override fun imageUrlParse(document: Document): String = throw Exception("Not Used") + override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException() override fun setupPreferenceScreen(screen: PreferenceScreen) { ListPreference(screen.context).apply { diff --git a/src/zh/roumanwu/src/eu/kanade/tachiyomi/extension/zh/roumanwu/Roumanwu.kt b/src/zh/roumanwu/src/eu/kanade/tachiyomi/extension/zh/roumanwu/Roumanwu.kt index d1bf55f45..4e5613b34 100644 --- a/src/zh/roumanwu/src/eu/kanade/tachiyomi/extension/zh/roumanwu/Roumanwu.kt +++ b/src/zh/roumanwu/src/eu/kanade/tachiyomi/extension/zh/roumanwu/Roumanwu.kt @@ -67,7 +67,7 @@ class Roumanwu : HttpSource(), ConfigurableSource { } } - override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() override fun getFilterList() = FilterList( Filter.Header("提示:搜索时筛选无效"), diff --git a/src/zh/sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt b/src/zh/sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt index 0207f5259..21a4909a0 100644 --- a/src/zh/sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt +++ b/src/zh/sixmh/src/eu/kanade/tachiyomi/extension/zh/sixmh/SixMH.kt @@ -188,7 +188,7 @@ class SixMH : HttpSource(), ConfigurableSource { return result.mapIndexed { i, url -> Page(i, imageUrl = url) } } - override fun imageUrlParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(response: Response) = throw UnsupportedOperationException() private inline fun Response.parseAs(): T = use { json.decodeFromStream(body.byteStream()) diff --git a/src/zh/tencentcomics/src/eu/kanade/tachiyomi/extension/zh/tencentcomics/TencentComics.kt b/src/zh/tencentcomics/src/eu/kanade/tachiyomi/extension/zh/tencentcomics/TencentComics.kt index 880c21da1..72672acee 100644 --- a/src/zh/tencentcomics/src/eu/kanade/tachiyomi/extension/zh/tencentcomics/TencentComics.kt +++ b/src/zh/tencentcomics/src/eu/kanade/tachiyomi/extension/zh/tencentcomics/TencentComics.kt @@ -159,7 +159,7 @@ class TencentComics : ParsedHttpSource() { return pages } - override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used.") + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() override fun searchMangaSelector() = "ul > li.comic-item > a" diff --git a/src/zh/terrahistoricus/src/eu/kanade/tachiyomi/extension/zh/terrahistoricus/TerraHistoricus.kt b/src/zh/terrahistoricus/src/eu/kanade/tachiyomi/extension/zh/terrahistoricus/TerraHistoricus.kt index 5bfd2b0fc..a21a84c22 100644 --- a/src/zh/terrahistoricus/src/eu/kanade/tachiyomi/extension/zh/terrahistoricus/TerraHistoricus.kt +++ b/src/zh/terrahistoricus/src/eu/kanade/tachiyomi/extension/zh/terrahistoricus/TerraHistoricus.kt @@ -36,8 +36,8 @@ class TerraHistoricus : HttpSource() { MangasPage(mangas, false) } - override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException("Not used.") - override fun searchMangaParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = throw UnsupportedOperationException() + override fun searchMangaParse(response: Response) = throw UnsupportedOperationException() // navigate webview to webpage override fun mangaDetailsRequest(manga: SManga) = GET(baseUrl + manga.url.removePrefix("/api"), headers) @@ -57,7 +57,7 @@ class TerraHistoricus : HttpSource() { } } - override fun pageListParse(response: Response) = throw UnsupportedOperationException("Not used.") + override fun pageListParse(response: Response) = throw UnsupportedOperationException() override fun imageUrlParse(response: Response) = response.parseAs().url diff --git a/src/zh/wnacg/src/eu/kanade/tachiyomi/extension/zh/wnacg/wnacg.kt b/src/zh/wnacg/src/eu/kanade/tachiyomi/extension/zh/wnacg/wnacg.kt index 99609e61a..5a07b00e7 100644 --- a/src/zh/wnacg/src/eu/kanade/tachiyomi/extension/zh/wnacg/wnacg.kt +++ b/src/zh/wnacg/src/eu/kanade/tachiyomi/extension/zh/wnacg/wnacg.kt @@ -37,19 +37,19 @@ class wnacg : ParsedHttpSource(), ConfigurableSource { .build() override fun popularMangaSelector() = ".gallary_item" - override fun latestUpdatesSelector() = throw Exception("Not used") + override fun latestUpdatesSelector() = throw UnsupportedOperationException() override fun searchMangaSelector() = popularMangaSelector() override fun chapterListSelector() = throw UnsupportedOperationException() override fun popularMangaNextPageSelector() = "span.thispage + a" - override fun latestUpdatesNextPageSelector() = throw Exception("Not used") + override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException() override fun searchMangaNextPageSelector() = popularMangaNextPageSelector() override fun popularMangaRequest(page: Int): Request { return GET("$baseUrl/albums-index-page-$page.html", headers) } - override fun latestUpdatesRequest(page: Int) = throw Exception("Not used") + override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException() override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { if (query.isBlank()) { @@ -73,7 +73,7 @@ class wnacg : ParsedHttpSource(), ConfigurableSource { .set("sec-fetch-site", "cross-site") override fun popularMangaFromElement(element: Element) = mangaFromElement(element) - override fun latestUpdatesFromElement(element: Element) = throw Exception("Not used") + override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException() override fun searchMangaFromElement(element: Element) = mangaFromElement(element) private fun mangaFromElement(element: Element): SManga { @@ -127,8 +127,8 @@ class wnacg : ParsedHttpSource(), ConfigurableSource { } } - override fun chapterFromElement(element: Element) = throw Exception("Not used") - override fun imageUrlParse(document: Document) = throw Exception("Not used") + override fun chapterFromElement(element: Element) = throw UnsupportedOperationException() + override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() // >>> Filters >>>