diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0e910b91e..533b28469 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,10 +1,10 @@ [versions] -kotlin_version = "1.6.21" -coroutines_version = "1.6.0" -serialization_version = "1.3.2" +kotlin_version = "1.7.21" +coroutines_version = "1.6.4" +serialization_version = "1.4.0" [libraries] -gradle-agp = { module = "com.android.tools.build:gradle", version = "7.3.0" } +gradle-agp = { module = "com.android.tools.build:gradle", version = "7.4.1" } gradle-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin_version" } gradle-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin_version" } gradle-kotlinter = { module = "org.jmailen.gradle:kotlinter-gradle", version = "3.6.0" } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index aa991fcea..070cb702f 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/multisrc/overrides/grouple/allhentai/src/AllHentai.kt b/multisrc/overrides/grouple/allhentai/src/AllHentai.kt index e71153248..092924e70 100644 --- a/multisrc/overrides/grouple/allhentai/src/AllHentai.kt +++ b/multisrc/overrides/grouple/allhentai/src/AllHentai.kt @@ -57,7 +57,7 @@ class AllHentai : GroupLe("AllHentai", "http://allhen.online", "ru") { return GET(tagUrl.toString(), headers) } } - else -> return@forEach + else -> {} } } return if (url.toString().contains("&")) diff --git a/multisrc/overrides/grouple/mintmanga/src/MintManga.kt b/multisrc/overrides/grouple/mintmanga/src/MintManga.kt index 8d3948e37..163fada14 100644 --- a/multisrc/overrides/grouple/mintmanga/src/MintManga.kt +++ b/multisrc/overrides/grouple/mintmanga/src/MintManga.kt @@ -49,7 +49,7 @@ class MintManga : GroupLe("MintManga", "https://mintmanga.live", "ru") { return GET(ordUrl.toString(), headers) } } - else -> return@forEach + else -> {} } } return if (url.toString().contains("&")) diff --git a/multisrc/overrides/grouple/readmanga/src/ReadManga.kt b/multisrc/overrides/grouple/readmanga/src/ReadManga.kt index 24c05e7a1..ab5c7351d 100644 --- a/multisrc/overrides/grouple/readmanga/src/ReadManga.kt +++ b/multisrc/overrides/grouple/readmanga/src/ReadManga.kt @@ -49,7 +49,7 @@ class ReadManga : GroupLe("ReadManga", "https://readmanga.live", "ru") { return GET(ordUrl.toString(), headers) } } - else -> return@forEach + else -> {} } } return if (url.toString().contains("&")) diff --git a/multisrc/overrides/libgroup/hentailib/src/HentaiLib.kt b/multisrc/overrides/libgroup/hentailib/src/HentaiLib.kt index dc32b5e0f..888d82d8c 100644 --- a/multisrc/overrides/libgroup/hentailib/src/HentaiLib.kt +++ b/multisrc/overrides/libgroup/hentailib/src/HentaiLib.kt @@ -43,6 +43,7 @@ class HentaiLib : LibGroup("HentaiLib", "https://hentailib.me", "ru") { ) } } + else -> {} } } return POST(url.toString(), catalogHeaders()) diff --git a/multisrc/overrides/libgroup/mangalib/src/MangaLib.kt b/multisrc/overrides/libgroup/mangalib/src/MangaLib.kt index 852f1ffcc..4d8019f31 100644 --- a/multisrc/overrides/libgroup/mangalib/src/MangaLib.kt +++ b/multisrc/overrides/libgroup/mangalib/src/MangaLib.kt @@ -67,6 +67,7 @@ class MangaLib : LibGroup("MangaLib", "https://mangalib.me", "ru") { ) } } + else -> {} } } return POST(url.toString(), catalogHeaders()) diff --git a/multisrc/overrides/libgroup/yaoilib/src/YaoiLib.kt b/multisrc/overrides/libgroup/yaoilib/src/YaoiLib.kt index 24683ce8f..f8659488b 100644 --- a/multisrc/overrides/libgroup/yaoilib/src/YaoiLib.kt +++ b/multisrc/overrides/libgroup/yaoilib/src/YaoiLib.kt @@ -49,6 +49,7 @@ class YaoiLib : LibGroup("YaoiLib", "https://v1.yaoilib.net", "ru") { ) } } + else -> {} } } return POST(url.toString(), catalogHeaders()) diff --git a/multisrc/overrides/madara/doujinhentai/src/DoujinHentai.kt b/multisrc/overrides/madara/doujinhentai/src/DoujinHentai.kt index 6c92730c1..d6f3d2791 100644 --- a/multisrc/overrides/madara/doujinhentai/src/DoujinHentai.kt +++ b/multisrc/overrides/madara/doujinhentai/src/DoujinHentai.kt @@ -49,6 +49,7 @@ class DoujinHentai : Madara( url.addQueryParameter("page", page.toString()) } } + else -> {} } } } diff --git a/multisrc/overrides/madara/pojokmanga/src/PojokManga.kt b/multisrc/overrides/madara/pojokmanga/src/PojokManga.kt index f2609228f..6604b0fb1 100644 --- a/multisrc/overrides/madara/pojokmanga/src/PojokManga.kt +++ b/multisrc/overrides/madara/pojokmanga/src/PojokManga.kt @@ -66,6 +66,7 @@ class PojokManga : Madara("Pojok Manga", "https://pojokmanga.net", "id", SimpleD url = "$baseUrl/project/page/$page".toHttpUrlOrNull()!!.newBuilder() } } + else -> {} } } return GET(url.toString(), headers) diff --git a/multisrc/overrides/multichan/yaoichan/src/YaoiChan.kt b/multisrc/overrides/multichan/yaoichan/src/YaoiChan.kt index 9646b705c..9f6515a41 100644 --- a/multisrc/overrides/multichan/yaoichan/src/YaoiChan.kt +++ b/multisrc/overrides/multichan/yaoichan/src/YaoiChan.kt @@ -34,6 +34,7 @@ class YaoiChan : MultiChan("YaoiChan", "https://yaoi-chan.me", "ru") { } } is Status -> status = arrayOf("", "all_done", "end", "ongoing", "new_ch")[filter.state] + else -> {} } } @@ -47,6 +48,7 @@ class YaoiChan : MultiChan("YaoiChan", "https://yaoi-chan.me", "ru") { arrayOf("&n=dateasc", "&n=favdesc", "&n=abcasc", "&n=chdesc")[filter.state!!.index] } } + else -> {} } } if (statusParam) { @@ -64,6 +66,7 @@ class YaoiChan : MultiChan("YaoiChan", "https://yaoi-chan.me", "ru") { arrayOf("manga/new&n=dateasc", "mostfavorites", "catalog", "sortch")[filter.state!!.index] } } + else -> {} } } if (statusParam) { diff --git a/multisrc/overrides/zmanga/komikita/src/Komikita.kt b/multisrc/overrides/zmanga/komikita/src/Komikita.kt index e339c2666..f4748280b 100644 --- a/multisrc/overrides/zmanga/komikita/src/Komikita.kt +++ b/multisrc/overrides/zmanga/komikita/src/Komikita.kt @@ -54,6 +54,7 @@ class Komikita : ZManga( "$baseUrl$projectPageString/page/$page".toHttpUrlOrNull()!!.newBuilder() } } + else -> {} } } return GET(url.toString(), headers) diff --git a/multisrc/overrides/zmanga/komikplay/src/KomikPlay.kt b/multisrc/overrides/zmanga/komikplay/src/KomikPlay.kt index 0a6f92df1..74b6ae541 100644 --- a/multisrc/overrides/zmanga/komikplay/src/KomikPlay.kt +++ b/multisrc/overrides/zmanga/komikplay/src/KomikPlay.kt @@ -42,6 +42,7 @@ class KomikPlay : ZManga("KomikPlay", "https://komikplay.com", "id", SimpleDateF url = "$baseUrl$projectPageString/page/$page".toHttpUrlOrNull()!!.newBuilder() } } + else -> {} } } return GET(url.toString(), headers) diff --git a/multisrc/overrides/zmanga/sektekomik/src/SekteKomik.kt b/multisrc/overrides/zmanga/sektekomik/src/SekteKomik.kt index 087421a1a..3245f54b1 100644 --- a/multisrc/overrides/zmanga/sektekomik/src/SekteKomik.kt +++ b/multisrc/overrides/zmanga/sektekomik/src/SekteKomik.kt @@ -68,6 +68,7 @@ class SekteKomik : ZManga("Sekte Komik", "https://sektekomik.com", "id") { url = "$baseUrl$projectPageString/${pagePathSegment(page)}".toHttpUrlOrNull()!!.newBuilder() } } + else -> {} } } return GET(url.toString(), headers) 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 0656bdc3f..da50670d6 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 @@ -93,6 +93,7 @@ abstract class FMReader( if (filter.state?.ascending == true) url.addQueryParameter("sort_type", "ASC") } + else -> {} } } return GET(url.toString(), headers) 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 2cfc8a45d..6752d2dc8 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 @@ -559,6 +559,7 @@ abstract class LibGroup( url.addQueryParameter(if (favorite.isIncluded()) "bookmarks[include][]" else "bookmarks[exclude][]", favorite.id) } } + else -> {} } } return POST(url.toString(), catalogHeaders()) 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 7b587117c..3a56cf086 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 @@ -96,6 +96,7 @@ abstract class MangaBox( filter.state.forEach { if (it.isIncluded()) genreInclude += "_${it.id}" } filter.state.forEach { if (it.isExcluded()) genreExclude += "_${it.id}" } } + else -> {} } } url.addQueryParameter("g_i", genreInclude) @@ -108,6 +109,7 @@ abstract class MangaBox( is SortFilter -> url.addQueryParameter("type", filter.toUriPart()) is StatusFilter -> url.addQueryParameter("state", filter.toUriPart()) is GenreFilter -> url.addQueryParameter("category", filter.toUriPart()) + else -> {} } } } 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 d1fe79f0b..9c1e7ea72 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 @@ -97,6 +97,7 @@ abstract class MangaWorld( } is SortBy -> url.addQueryParameter("sort", filter.toUriPart()) is TextField -> url.addQueryParameter(filter.key, filter.state) + else -> {} } } return GET(url.toString(), headers) 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 a13051ba3..0933fc414 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 @@ -72,6 +72,7 @@ abstract class Paprika( when (filter) { is GenreFilter -> url.addPathSegment(filter.toUriPart()) is OrderFilter -> url.addQueryParameter("orderby", filter.toUriPart()) + else -> {} } } url.addQueryParameter("page", page.toString()) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/paprika/PaprikaAlt.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/paprika/PaprikaAlt.kt index 04b728757..f3ab8fedc 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/paprika/PaprikaAlt.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/paprika/PaprikaAlt.kt @@ -41,6 +41,7 @@ abstract class PaprikaAlt( when (filter) { is GenreFilter -> url.addPathSegment(filter.toUriPart()) is OrderFilter -> url.addQueryParameter("orderby", filter.toUriPart()) + else -> {} } } url.addQueryParameter("page", page.toString()) 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 7c86e63ee..5fce833f9 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 @@ -84,6 +84,7 @@ abstract class WPComics( when (filter) { is GenreFilter -> filter.toUriPart()?.let { url.addPathSegment(it) } is StatusFilter -> filter.toUriPart()?.let { url.addQueryParameter("status", it) } + else -> {} } } 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 15acbbdad..8d4db2e0e 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 @@ -93,6 +93,7 @@ abstract class ZManga( url = "$baseUrl$projectPageString/page/$page".toHttpUrlOrNull()!!.newBuilder() } } + else -> {} } } return GET(url.toString(), headers) 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 bb1c12e67..10cffb1fe 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 @@ -697,7 +697,7 @@ open class BatoTo( TriStateFilterOption("manhwa", "Manhwa"), TriStateFilterOption("webtoon", "Webtoon"), TriStateFilterOption("western", "Western"), - + TriStateFilterOption("shoujo", "Shoujo(G)"), TriStateFilterOption("shounen", "Shounen(B)"), TriStateFilterOption("josei", "Josei(W)"), @@ -706,7 +706,7 @@ open class BatoTo( TriStateFilterOption("yaoi", "Yaoi(BL)"), TriStateFilterOption("futa", "Futa(WL)"), TriStateFilterOption("bara", "Bara(ML)"), - + TriStateFilterOption("gore", "Gore"), TriStateFilterOption("bloody", "Bloody"), TriStateFilterOption("violence", "Violence"), @@ -715,7 +715,7 @@ open class BatoTo( TriStateFilterOption("mature", "Mature"), TriStateFilterOption("smut", "Smut"), TriStateFilterOption("hentai", "Hentai"), - + TriStateFilterOption("_4_koma", "4-Koma"), TriStateFilterOption("action", "Action"), TriStateFilterOption("adaptation", "Adaptation"), 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 c5e6f6788..9f0b9e4bf 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 @@ -166,11 +166,11 @@ abstract class EHentai( .joinToString(",") .let { if (it.isNotEmpty()) ",$it" else it } uri.appendQueryParameter("f_search", modifiedQuery) - //when attempting to search with no genres selected, will auto select all genres + // when attempting to search with no genres selected, will auto select all genres filters.filterIsInstance().firstOrNull()?.state?.let { - //variable to to check is any genres are selected - val check = it.any { option -> option.state } // or it.any(GenreOption::state) - //if no genres are selected by the user set all genres to on + // variable to to check is any genres are selected + val check = it.any { option -> option.state } // or it.any(GenreOption::state) + // if no genres are selected by the user set all genres to on if (!check) { for (i in it) { (i as GenreOption).state = true 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 c04be8920..5f34faf01 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 @@ -123,13 +123,15 @@ class EveriaClub() : ParsedHttpSource() { ) open class UriPartFilter( - displayName: String, private val valuePair: Array> + displayName: String, + private val valuePair: Array> ) : Filter.Select(displayName, valuePair.map { it.first }.toTypedArray()) { fun toUriPart() = valuePair[state].second } class CategoryFilter : UriPartFilter( - "Category", arrayOf( + "Category", + arrayOf( Pair("Any", ""), Pair("Gravure", "/gravure"), Pair("Aidol", "/aidol"), diff --git a/src/all/kavita/src/eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt b/src/all/kavita/src/eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt index a9f1453bb..b01fba0b4 100644 --- a/src/all/kavita/src/eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt +++ b/src/all/kavita/src/eu/kanade/tachiyomi/extension/all/kavita/Kavita.kt @@ -944,6 +944,7 @@ class Kavita(private val suffix: String = "") : ConfigurableSource, UnmeteredSou entryValues = KavitaConstants.filterPrefEntriesValue setDefaultValue(KavitaConstants.defaultFilterPrefEntries) setOnPreferenceChangeListener { _, newValue -> + @Suppress("UNCHECKED_CAST") val checkValue = newValue as Set preferences.edit() .putStringSet(KavitaConstants.toggledFiltersPref, checkValue) diff --git a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt index b728563be..51f0a5b42 100644 --- a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt +++ b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt @@ -170,6 +170,7 @@ open class Komga(private val suffix: String = "") : ConfigurableSource, Unmetere url.addQueryParameter("sort", sortCriteria) } } + else -> {} } } diff --git a/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt b/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt index affa580db..f32d761dd 100644 --- a/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt +++ b/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt @@ -92,7 +92,7 @@ open class LANraragi(private val suffix: String = "") : ConfigurableSource, Unme val archive = json.decodeFromString(response.body!!.string()) val uri = getApiUriBuilder("/api/archives/${archive.arcid}/files") val prefClearNew = preferences.getBoolean(NEW_ONLY_KEY, NEW_ONLY_DEFAULT) - + if (archive.isnew == "true" && prefClearNew) { val clearNew = Request.Builder() .url("$baseUrl/api/archives/${archive.arcid}/isnew") @@ -183,7 +183,7 @@ open class LANraragi(private val suffix: String = "") : ConfigurableSource, Unme is DescendingOrder -> if (filter.state) uri.appendQueryParameter("order", "desc") is SortByNamespace -> if (filter.state.isNotEmpty()) uri.appendQueryParameter("sortby", filter.state.trim()) is CategorySelect -> if (filter.state > 0) uri.appendQueryParameter("category", filter.toUriPart()) - else -> Unit + else -> {} } } diff --git a/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaParkFilters.kt b/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaParkFilters.kt index ca85eab0e..e60bc88e6 100644 --- a/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaParkFilters.kt +++ b/src/all/mangapark/src/eu/kanade/tachiyomi/extension/all/mangapark/MangaParkFilters.kt @@ -73,6 +73,7 @@ class MangaParkFilters { includedGenre += filter.state.filter { it.isIncluded() }.map { it.value } excludedGenre += filter.state.filter { it.isExcluded() }.map { it.value } } + else -> {} } } diff --git a/src/all/mangareaderto/src/eu/kanade/tachiyomi/extension/all/mangareaderto/MangaReader.kt b/src/all/mangareaderto/src/eu/kanade/tachiyomi/extension/all/mangareaderto/MangaReader.kt index b2f539501..1937ceaeb 100644 --- a/src/all/mangareaderto/src/eu/kanade/tachiyomi/extension/all/mangareaderto/MangaReader.kt +++ b/src/all/mangareaderto/src/eu/kanade/tachiyomi/extension/all/mangareaderto/MangaReader.kt @@ -101,7 +101,7 @@ open class MangaReader( is GenresFilter -> { addQueryParameter(filter.param, filter.selection) } - else -> Unit + else -> {} } } } diff --git a/src/all/ninemanga/src/eu/kanade/tachiyomi/extension/all/ninemanga/NineManga.kt b/src/all/ninemanga/src/eu/kanade/tachiyomi/extension/all/ninemanga/NineManga.kt index 13cab51c0..0519fe96c 100644 --- a/src/all/ninemanga/src/eu/kanade/tachiyomi/extension/all/ninemanga/NineManga.kt +++ b/src/all/ninemanga/src/eu/kanade/tachiyomi/extension/all/ninemanga/NineManga.kt @@ -145,6 +145,7 @@ open class NineManga( url.addQueryParameter("out_category_id", genreExclude) } is CompletedFilter -> url.addQueryParameter("completed_series", filter.toUriPart()) + else -> {} } } 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 a273c089b..74d8283db 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 @@ -109,7 +109,7 @@ open class SimplyHentai(override val lang: String) : ConfigurableSource, HttpSou is CharactersFilter -> filter.value?.forEachIndexed { idx, tag -> appendQueryParameter("filter[characters][$idx]", tag.trim()) } - else -> Unit + else -> {} } } GET(build().toString(), headers) 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 7c537d31f..90af499d0 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 @@ -55,7 +55,7 @@ class YaoiMangaOnline : ParsedHttpSource() { is TagFilter -> if (it.state != 0) { addEncodedPathSegments("tag/$it") } - else -> Unit + else -> {} } } addEncodedPathSegments("page/$page") diff --git a/src/ar/asgardteam/src/eu/kanade/tachiyomi/extension/ar/asgardteam/AsgardTeam.kt b/src/ar/asgardteam/src/eu/kanade/tachiyomi/extension/ar/asgardteam/AsgardTeam.kt index e4a0576fe..6d8ce155f 100644 --- a/src/ar/asgardteam/src/eu/kanade/tachiyomi/extension/ar/asgardteam/AsgardTeam.kt +++ b/src/ar/asgardteam/src/eu/kanade/tachiyomi/extension/ar/asgardteam/AsgardTeam.kt @@ -79,6 +79,7 @@ class AsgardTeam : ParsedHttpSource() { filters.forEach { filter -> when (filter) { is TypeFilter -> url.addQueryParameter("type", filter.toUriPart()) + else -> {} } } GET(url.build().toString(), headers) 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 b9ada07af..6fbca34d3 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 @@ -85,6 +85,7 @@ class MangaAe : ParsedHttpSource() { url += "|order:${filter.toUriPart()}" } } + else -> {} } } url += "|arrange:minus" 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 ab6ae19ca..e5781a3d5 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 @@ -46,6 +46,7 @@ class ComicExtra : ParsedHttpSource() { filters.forEach { filter -> when (filter) { is GenreFilter -> url += "/${filter.toUriPart()}" + else -> {} } } GET(url + if (page > 1) "/$page" else "", headers) 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 049b7a8bc..9e22afae8 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 @@ -112,6 +112,7 @@ class Hentai2Read : ParsedHttpSource() { } } is SortOrder -> sortOrder = filter.toUriPart() + else -> {} } } } 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 4660c285f..1dcf9f335 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 @@ -77,6 +77,7 @@ class HentaiFox : ParsedHttpSource() { is GenreFilter -> { url += "${filter.toUriPart()}/pag/$page/" } + else -> {} } } GET(url, headers) 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 8d7e1b81f..440682e18 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 @@ -93,6 +93,7 @@ class Mangafreak : ParsedHttpSource() { } is StatusFilter -> url.addPathSegments("Status/${filter.toUriPart()}") is TypeFilter -> url.addPathSegments("Type/${filter.toUriPart()}") + else -> {} } } 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 9ec3f76ae..3e073ab4e 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 @@ -125,6 +125,7 @@ class Mangahere : ParsedHttpSource() { url.addEncodedQueryParameter("released_method", "eq") url.addEncodedQueryParameter("released", filter.state) } + else -> {} } } 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 c77b84693..7e8a62f1e 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 @@ -79,6 +79,7 @@ class MangaJar : ParsedHttpSource() { is SortBy -> { url.addQueryParameter("sortAscending", filter.toUriPart()) } + else -> {} } } return GET(url.toString(), headers) 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 9a2e4fd98..1ea5ba30f 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 @@ -122,6 +122,7 @@ class MangaKatana : ConfigurableSource, ParsedHttpSource() { else -> url.addQueryParameter("chapters", filter.state.trim()) } } + else -> {} } } return GET(url.toString(), headers) diff --git a/src/en/mangapill/src/eu/kanade/tachiyomi/extension/en/mangapill/MangaPill.kt b/src/en/mangapill/src/eu/kanade/tachiyomi/extension/en/mangapill/MangaPill.kt index f9b9a94f3..6e74becda 100644 --- a/src/en/mangapill/src/eu/kanade/tachiyomi/extension/en/mangapill/MangaPill.kt +++ b/src/en/mangapill/src/eu/kanade/tachiyomi/extension/en/mangapill/MangaPill.kt @@ -103,7 +103,6 @@ class MangaPill : ParsedHttpSource() { filters.forEach { filter -> when (filter) { is GenreList -> { - val genreInclude = mutableListOf() filter.state.forEach { if (it.state == 1) { @@ -118,6 +117,7 @@ class MangaPill : ParsedHttpSource() { } is Status -> url.addQueryParameter("status", filter.toUriPart()) is Type -> url.addQueryParameter("type", filter.toUriPart()) + else -> {} } } return GET(url.toString(), headers) 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 e0a4ca619..12ccf4818 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 @@ -166,6 +166,7 @@ class MangaRawClub : ParsedHttpSource() { requestBody.add("options[]", it.name) } } + else -> {} } } return GET(url.toString(), headers) 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 17976aec5..5c586e69d 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 @@ -66,6 +66,7 @@ class MyHentaiComics : ParsedHttpSource() { for (filter in if (filters.isEmpty()) getFilterList() else filters) { when (filter) { is GenreFilter -> url += filter.toUriPart() + "?page=$page" + else -> {} } } GET(url, headers) 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 ee7933de0..0f03555ed 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 @@ -89,6 +89,7 @@ class MyHentaiGallery : ParsedHttpSource() { is GenreFilter -> { url.addPathSegment(filter.toUriPart()) } + else -> {} } } url.addPathSegment("$page") 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 9c19c0832..6598ab2eb 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 @@ -78,6 +78,7 @@ class NineAnime : ParsedHttpSource() { for (filter in if (filters.isEmpty()) getFilterList() else filters) { when (filter) { is GenreFilter -> url += filter.toUriPart() + "_$page.html" + else -> {} } } GET(url, headers) 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 bd536085f..184249b85 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 @@ -65,6 +65,7 @@ open class RainOfSnow() : ParsedHttpSource() { url.addQueryParameter("n_orderby", filter.toUriPart()) } } + else -> {} } } return GET(url.build().toString(), headers) 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 aa1fe0fad..2b0459aef 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 @@ -92,6 +92,7 @@ class Readmangatoday : ParsedHttpSource() { Filter.TriState.STATE_EXCLUDE -> builder.add("exclude[]", genre.id.toString()) } } + else -> {} } } return POST("$baseUrl/advanced-search", headers, builder.build()) 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 0766618e7..f5deb1f4d 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 @@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.extension.en.tapastic import android.app.Application import android.content.SharedPreferences -import android.net.Uri import android.webkit.CookieManager import androidx.preference.PreferenceScreen import androidx.preference.SwitchPreferenceCompat 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 1cdfb003f..4719a506e 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 @@ -88,6 +88,7 @@ class Webcomics : ParsedHttpSource() { val genre = getGenreList()[filter.state] url?.addQueryParameter("category", genre) } + else -> {} } } return GET(url.toString(), headers) 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 d0af9f9f2..f5153a05c 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 @@ -81,6 +81,7 @@ class HeavenManga : ParsedHttpSource() { return GET("$baseUrl/$name$pageParameter", headers) } } + else -> {} } } } diff --git a/src/es/ikuhentai/src/eu/kanade/tachiyomi/extension/es/ikuhentai/Ikuhentai.kt b/src/es/ikuhentai/src/eu/kanade/tachiyomi/extension/es/ikuhentai/Ikuhentai.kt index 98a601db9..e5a6fd47c 100755 --- a/src/es/ikuhentai/src/eu/kanade/tachiyomi/extension/es/ikuhentai/Ikuhentai.kt +++ b/src/es/ikuhentai/src/eu/kanade/tachiyomi/extension/es/ikuhentai/Ikuhentai.kt @@ -99,6 +99,7 @@ class Ikuhentai : ParsedHttpSource() { url.addQueryParameter("m_orderby", orderBy) } is TextField -> url.addQueryParameter(filter.key, filter.state) + else -> {} } } 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 0fb2bf4c9..87cbfa7b2 100755 --- 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 @@ -210,6 +210,7 @@ class Kumanga : HttpSource() { .filter { genre -> genre.state } .forEach { genre -> url.addQueryParameter("category_filter[]", genre.id) } } + else -> {} } } 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 fbd1b5d25..1b4237843 100755 --- 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 @@ -166,6 +166,7 @@ class LectorManga : ConfigurableSource, ParsedHttpSource() { .filter { genre -> genre.state } .forEach { genre -> url.addQueryParameter("genders[]", genre.id) } } + else -> {} } } 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 2cbd1915a..beebc91a7 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 @@ -126,6 +126,7 @@ open class MangaOni : ConfigurableSource, ParsedHttpSource() { "genero", genresArray[filter.state].second ) + else -> {} } } uri.appendQueryParameter("p", page.toString()) diff --git a/src/es/tmohentai/src/eu/kanade/tachiyomi/extension/es/tmohentai/TMOHentai.kt b/src/es/tmohentai/src/eu/kanade/tachiyomi/extension/es/tmohentai/TMOHentai.kt index 398728855..2fb9f2a71 100755 --- a/src/es/tmohentai/src/eu/kanade/tachiyomi/extension/es/tmohentai/TMOHentai.kt +++ b/src/es/tmohentai/src/eu/kanade/tachiyomi/extension/es/tmohentai/TMOHentai.kt @@ -148,6 +148,7 @@ class TMOHentai : ConfigurableSource, ParsedHttpSource() { ) } } + else -> {} } } 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 560331e56..8fa96eeca 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 @@ -148,6 +148,7 @@ class TuMangaOnline : ConfigurableSource, ParsedHttpSource() { } } } + else -> {} } } return GET(url.build().toString(), 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 dfb09289c..5bbee7cef 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 @@ -80,25 +80,22 @@ open class VCPVMP(override val name: String, override val baseUrl: String) : Par filters.forEach { filter -> when (filter) { is Genre -> { - when (filter.toUriPart().isNotEmpty()) { - true -> { - url = baseUrl.toHttpUrlOrNull()!!.newBuilder() + if (filter.toUriPart().isNotEmpty()) { + url = baseUrl.toHttpUrlOrNull()!!.newBuilder() - url.addPathSegments(if (isOnVCP) "tags" else "genero") - url.addPathSegments(filter.toUriPart()) + url.addPathSegments(if (isOnVCP) "tags" else "genero") + url.addPathSegments(filter.toUriPart()) - url.addPathSegments("page") - url.addPathSegments(page.toString()) - } + url.addPathSegments("page") + url.addPathSegments(page.toString()) } } is Category -> { - when (filter.toUriPart().isNotEmpty()) { - true -> { - url.addQueryParameter("cat", filter.toUriPart()) - } + if (filter.toUriPart().isNotEmpty()) { + url.addQueryParameter("cat", filter.toUriPart()) } } + else -> {} } } 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 d12d15ac9..4d1f079e2 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 @@ -91,6 +91,7 @@ class BacaKomik : ParsedHttpSource() { .filter { it.state != Filter.TriState.STATE_IGNORE } .forEach { url.addQueryParameter("genre[]", it.id) } } + else -> {} } } return GET(url.build().toString(), headers) 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 86158e53c..ec33b49d6 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 @@ -325,6 +325,7 @@ class DoujinDesu : ParsedHttpSource() { val status = filter.values[filter.state] url.addQueryParameter("statusx", status.key) } + else -> {} } } return GET(url.toString(), headers) 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 04cb51dea..9c915e2b2 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 @@ -117,6 +117,7 @@ class KomikIndoID : ParsedHttpSource() { } } } + else -> {} } } return GET(url.toString(), headers) 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 57cc57fe5..3240f3958 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 @@ -110,6 +110,7 @@ class Komiku : ParsedHttpSource() { url = ("$baseUrl/pustaka" + if (page > 1) "/page/$page/" else "" + "?tipe=projek").toHttpUrlOrNull()!!.newBuilder() } } + else -> {} } } return GET(url.toString(), headers) 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 dc9358974..1eb14092f 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 @@ -61,6 +61,7 @@ class AnimeGDRClub : ParsedHttpSource() { } } } + else -> {} } } diff --git a/src/it/demoneceleste/src/eu/kanade/tachiyomi/extension/it/demoneceleste/DemoneCeleste.kt b/src/it/demoneceleste/src/eu/kanade/tachiyomi/extension/it/demoneceleste/DemoneCeleste.kt index 18b57d95f..c39e190ac 100644 --- a/src/it/demoneceleste/src/eu/kanade/tachiyomi/extension/it/demoneceleste/DemoneCeleste.kt +++ b/src/it/demoneceleste/src/eu/kanade/tachiyomi/extension/it/demoneceleste/DemoneCeleste.kt @@ -70,6 +70,7 @@ class DemoneCeleste : ParsedHttpSource() { } } } + else -> {} } } return GET("$url#$status", headers) diff --git a/src/it/hentaifantasy/src/eu/kanade/tachiyomi/extension/it/hentaifantasy/HentaiFantasy.kt b/src/it/hentaifantasy/src/eu/kanade/tachiyomi/extension/it/hentaifantasy/HentaiFantasy.kt index cda544195..47801cffb 100644 --- a/src/it/hentaifantasy/src/eu/kanade/tachiyomi/extension/it/hentaifantasy/HentaiFantasy.kt +++ b/src/it/hentaifantasy/src/eu/kanade/tachiyomi/extension/it/hentaifantasy/HentaiFantasy.kt @@ -80,6 +80,7 @@ class HentaiFantasy : ParsedHttpSource() { it.id.toString() } .forEach { tags.add(it) } + else -> {} } } diff --git a/src/it/shingekinoshoujo/src/eu/kanade/tachiyomi/extension/it/shingekinoshoujo/ShingekiNoShoujo.kt b/src/it/shingekinoshoujo/src/eu/kanade/tachiyomi/extension/it/shingekinoshoujo/ShingekiNoShoujo.kt index fa5d2b5f1..1f0bbfc44 100644 --- a/src/it/shingekinoshoujo/src/eu/kanade/tachiyomi/extension/it/shingekinoshoujo/ShingekiNoShoujo.kt +++ b/src/it/shingekinoshoujo/src/eu/kanade/tachiyomi/extension/it/shingekinoshoujo/ShingekiNoShoujo.kt @@ -41,6 +41,7 @@ class ShingekiNoShoujo : ParsedHttpSource() { }.map { it.id }[0]}/page/$page" ) } + else -> {} } } return GET(baseUrl, headers) 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 9d2364aab..9cce24311 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 @@ -143,6 +143,7 @@ class Rawdevart : ParsedHttpSource() { ) } } + else -> {} } } 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 74a238b34..5dce42318 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 @@ -77,6 +77,7 @@ class SenManga : ParsedHttpSource() { url.addQueryParameter("nogenre", genreExclude) } is SortFilter -> url.addQueryParameter("sort", filter.toUriPart()) + else -> {} } } return GET(url.toString(), headers) diff --git a/src/pt/argosscan/src/eu/kanade/tachiyomi/extension/pt/argosscan/ArgosScan.kt b/src/pt/argosscan/src/eu/kanade/tachiyomi/extension/pt/argosscan/ArgosScan.kt index cb7c503e0..d3f3deff5 100644 --- a/src/pt/argosscan/src/eu/kanade/tachiyomi/extension/pt/argosscan/ArgosScan.kt +++ b/src/pt/argosscan/src/eu/kanade/tachiyomi/extension/pt/argosscan/ArgosScan.kt @@ -29,7 +29,6 @@ import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.Response -import rx.Observable import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get import uy.kohesive.injekt.injectLazy diff --git a/src/pt/hqnow/src/eu/kanade/tachiyomi/extension/pt/hqnow/HQNow.kt b/src/pt/hqnow/src/eu/kanade/tachiyomi/extension/pt/hqnow/HQNow.kt index 718c124b7..6a5e5af5b 100644 --- a/src/pt/hqnow/src/eu/kanade/tachiyomi/extension/pt/hqnow/HQNow.kt +++ b/src/pt/hqnow/src/eu/kanade/tachiyomi/extension/pt/hqnow/HQNow.kt @@ -21,7 +21,6 @@ import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.Response -import rx.Observable import uy.kohesive.injekt.injectLazy import java.text.Normalizer import java.util.Locale 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 0ca329eca..6810f1b82 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 @@ -83,6 +83,7 @@ class AComics : ParsedHttpSource() { } } } + else -> {} } } "$baseUrl/comics?categories=${categories.joinToString(",")}&${rating.joinToString { "ratings[]=$it" }}&type=0&updatable=$status&subscribe=0&issue_count=2&sort=subscr_count&skip=${10 * (page - 1)}" diff --git a/src/ru/comx/src/eu/kanade/tachiyomi/extension/ru/comx/ComX.kt b/src/ru/comx/src/eu/kanade/tachiyomi/extension/ru/comx/ComX.kt index 6126ab189..15a6aa174 100644 --- a/src/ru/comx/src/eu/kanade/tachiyomi/extension/ru/comx/ComX.kt +++ b/src/ru/comx/src/eu/kanade/tachiyomi/extension/ru/comx/ComX.kt @@ -203,6 +203,7 @@ class ComX : ParsedHttpSource() { sectionPub += publisher.id } } + else -> {} } } val pageParameter = if (page > 1) "page/$page/" else "" 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 f115ed6b3..134c43077 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 @@ -146,6 +146,7 @@ class Desu : HttpSource() { is OrderBy -> url += "&order=" + arrayOf("popular", "updated", "name")[filter.state] is TypeList -> filter.state.forEach { type -> if (type.state) types.add(type) } is GenreList -> filter.state.forEach { genre -> if (genre.state) genres.add(genre) } + else -> {} } } 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 981ebbebb..962e71c34 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 @@ -80,6 +80,7 @@ class MangaBook : ParsedHttpSource() { url.addQueryParameter("ftype[]", forma.id) } } + else -> {} } } return GET(url.toString(), headers) diff --git a/src/ru/mangaclub/src/eu/kanade/tachiyomi/extension/ru/mangaclub/MangaClub.kt b/src/ru/mangaclub/src/eu/kanade/tachiyomi/extension/ru/mangaclub/MangaClub.kt index 06f70bb7d..4493dca2c 100644 --- a/src/ru/mangaclub/src/eu/kanade/tachiyomi/extension/ru/mangaclub/MangaClub.kt +++ b/src/ru/mangaclub/src/eu/kanade/tachiyomi/extension/ru/mangaclub/MangaClub.kt @@ -80,6 +80,7 @@ class MangaClub : ParsedHttpSource() { val orderID = arrayOf("date", "editdate", "title", "comm_num", "news_read", "rating")[filter.state!!.index] url += "/sort=$orderID/order=$orderState" } + else -> {} } } url += "/page/$page" 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 1d7fc40f4..208b47708 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 @@ -63,6 +63,7 @@ class MangaPoisk : ParsedHttpSource() { url.addQueryParameter("genres[]", genre.id) } } + else -> {} } } return GET(url.toString(), headers) 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 a86beb244..f18af02c4 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 @@ -203,6 +203,7 @@ class Newbie : ConfigurableSource, HttpSource() { requireChapters = false } } + else -> {} } } diff --git a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt index 95484736b..f0b9fd1f1 100644 --- a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt +++ b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt @@ -239,6 +239,7 @@ class Remanga : ConfigurableSource, HttpSource() { return GET(UserProfileUrl.toString(), headers) } } + else -> {} } } return GET(url.toString(), headers) 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 dfae8f21c..e052dae93 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 @@ -65,7 +65,7 @@ class UniComics : ParsedHttpSource() { return GET(publisherUrl.toString(), headers) } } - else -> return@forEach + else -> {} } } if (query.isNotEmpty()) { diff --git a/src/ru/webofcomics/src/eu/kanade/tachiyomi/extension/ru/webofcomics/WebOfComics.kt b/src/ru/webofcomics/src/eu/kanade/tachiyomi/extension/ru/webofcomics/WebOfComics.kt index 069a5a739..19de1fb4f 100644 --- a/src/ru/webofcomics/src/eu/kanade/tachiyomi/extension/ru/webofcomics/WebOfComics.kt +++ b/src/ru/webofcomics/src/eu/kanade/tachiyomi/extension/ru/webofcomics/WebOfComics.kt @@ -126,6 +126,7 @@ class WebOfComics : ParsedHttpSource() { publisherCat = getPublishersComics()[filter.state].id } } + else -> {} } } } @@ -148,10 +149,12 @@ class WebOfComics : ParsedHttpSource() { publisherCat = getPublishersManga()[filter.state].id } } + else -> {} } } } } + else -> {} } } diff --git a/src/ru/yagamiproject/src/eu/kanade/tachiyomi/extension/ru/mangabook/YagamiProject.kt b/src/ru/yagamiproject/src/eu/kanade/tachiyomi/extension/ru/mangabook/YagamiProject.kt index 2b0cab106..7444158d4 100644 --- a/src/ru/yagamiproject/src/eu/kanade/tachiyomi/extension/ru/mangabook/YagamiProject.kt +++ b/src/ru/yagamiproject/src/eu/kanade/tachiyomi/extension/ru/mangabook/YagamiProject.kt @@ -71,6 +71,7 @@ class YagamiProject : ParsedHttpSource() { return GET(formaUrl.toString(), headers) } } + else -> {} } } return popularMangaRequest(page) diff --git a/src/uk/mangainua/src/eu/kanade/tachiyomi/extension/uk/mangainua/Mangainua.kt b/src/uk/mangainua/src/eu/kanade/tachiyomi/extension/uk/mangainua/Mangainua.kt index 164d0bfdd..b0a9ab749 100644 --- a/src/uk/mangainua/src/eu/kanade/tachiyomi/extension/uk/mangainua/Mangainua.kt +++ b/src/uk/mangainua/src/eu/kanade/tachiyomi/extension/uk/mangainua/Mangainua.kt @@ -64,7 +64,7 @@ class Mangainua : ParsedHttpSource() { // Search override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { - if (query.length > 2 ) { + if (query.length > 2) { return POST( "$baseUrl/index.php?do=search", body = FormBody.Builder() diff --git a/src/vi/hentaivn/src/eu/kanade/tachiyomi/extension/vi/hentaivn/HentaiVN.kt b/src/vi/hentaivn/src/eu/kanade/tachiyomi/extension/vi/hentaivn/HentaiVN.kt index 24600c5cc..063a8dbe4 100644 --- a/src/vi/hentaivn/src/eu/kanade/tachiyomi/extension/vi/hentaivn/HentaiVN.kt +++ b/src/vi/hentaivn/src/eu/kanade/tachiyomi/extension/vi/hentaivn/HentaiVN.kt @@ -57,7 +57,7 @@ class HentaiVN : ParsedHttpSource() { private val dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH) - //latestUpdates + // latestUpdates override fun latestUpdatesRequest(page: Int): Request { return GET("$baseUrl/chap-moi.html?page=$page", headers) } @@ -74,7 +74,7 @@ class HentaiVN : ParsedHttpSource() { return manga } - //Popular + // Popular override fun popularMangaRequest(page: Int): Request { return GET("$baseUrl/danh-sach.html?page=$page", headers) } @@ -83,7 +83,7 @@ class HentaiVN : ParsedHttpSource() { override fun popularMangaNextPageSelector() = latestUpdatesNextPageSelector() override fun popularMangaSelector() = latestUpdatesSelector() - //Chapter + // Chapter override fun chapterListSelector() = "table.listing > tbody > tr" override fun chapterFromElement(element: Element): SChapter { if (element.select("a").isEmpty()) throw Exception(element.select("h2").html()) @@ -111,7 +111,7 @@ class HentaiVN : ParsedHttpSource() { override fun imageUrlParse(document: Document) = "" - //Detail + // Detail override fun mangaDetailsParse(document: Document): SManga { val infoElement = document.select(".main > .page-left > .left-info > .page-info") val manga = SManga.create() @@ -133,18 +133,18 @@ class HentaiVN : ParsedHttpSource() { else -> SManga.UNKNOWN } - //Pages + // Pages override fun pageListParse(document: Document): List { return document.select("#image > img").mapIndexed { i, e -> Page(i, imageUrl = e.attr("abs:src")) } } - //Search + // Search override fun searchMangaParse(response: Response): MangasPage { val document = response.asJsoup() if (document.select("p").toString() - .contains("Bạn chỉ có thể sử dụng chức năng này khi đã đăng ký thành viên") + .contains("Bạn chỉ có thể sử dụng chức năng này khi đã đăng ký thành viên") ) throw Exception("Đăng nhập qua WebView để kích hoạt tìm kiếm") @@ -247,7 +247,7 @@ class HentaiVN : ParsedHttpSource() { val group = getGroupList()[filter.state] url.addQueryParameter("group", group.id) } - else -> return@forEach + else -> {} } } 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 b5f0e7d1a..c36964275 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 @@ -150,7 +150,7 @@ class LxHentai : ParsedHttpSource() { .attr("style") .substringAfter("url('") .substringBefore("')") - + val statusString = document.select("div.grow div.mt-2:contains(Tình trạng) a").first().text() status = when (statusString) { "Đã hoàn thành" -> SManga.COMPLETED 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 1d44e9afd..c533e87b5 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 @@ -160,7 +160,7 @@ class YuriNeko : HttpSource() { else -> continue } } - else -> continue + else -> {} } } return popularMangaRequest(page) 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 6e905d765..783d46a64 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 @@ -112,6 +112,7 @@ class Kuaikanmanhua : HttpSource() { is StatusFilter -> { status = filter.toUriPart() } + else -> {} } } GET("$apiUrl/v1/search/by_tag?since=${(page - 1) * 10}&tag=$genre&sort=1&query_category=%7B%22update_status%22:$status%7D") 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 3db972cfe..8874e963b 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 @@ -172,6 +172,7 @@ class Manhuaren : HttpSource() { url = url.setQueryParameter("subCategoryId", filter.getId()) .setQueryParameter("subCategoryType", filter.getType()) } + else -> {} } } url = url.addPathSegments("/v2/manga/getCategoryMangas") 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 fec8a1887..0abed7642 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 @@ -217,6 +217,7 @@ class TencentComics : ParsedHttpSource() { is VipFilter -> { vip = filter.toUriPart() } + else -> {} } } GET("$desktopUrl/Comic/all/$genre${status}search/$popularity${vip}page/$page") diff --git a/src/zh/zerobyw/src/eu/kanade/tachiyomi/extension/zh/zerobyw/Zerobyw.kt b/src/zh/zerobyw/src/eu/kanade/tachiyomi/extension/zh/zerobyw/Zerobyw.kt index 2284183ae..4f90c03a1 100644 --- a/src/zh/zerobyw/src/eu/kanade/tachiyomi/extension/zh/zerobyw/Zerobyw.kt +++ b/src/zh/zerobyw/src/eu/kanade/tachiyomi/extension/zh/zerobyw/Zerobyw.kt @@ -27,7 +27,6 @@ class Zerobyw : ParsedHttpSource(), ConfigurableSource { private val preferences: SharedPreferences = Injekt.get().getSharedPreferences("source_$id", 0x0000) - // Url can be found at https://cdn.jsdelivr.net/gh/zerozzz123456/1/url.json // or just search for "zerobyw" in google private val defaultBaseUrl = "http://www.zerobywblac.com"