Clean up and remove misplaced dead overrides (#814)

* Clean up and fix misplaced overrides

* Remove Pikiran Wibu

* Remove AkuManga

* Remove SobatManku

Overrides with misplaced files turn out to be all dead.

* Bump Hikari Scan
This commit is contained in:
stevenyomi 2024-01-31 02:18:20 +08:00 committed by GitHub
parent edffc2e8ad
commit fd1554905f
18 changed files with 18 additions and 66 deletions

View File

@ -27,9 +27,15 @@ class BilibiliManga : Bilibili(
return emptyList() return emptyList()
} }
return result.data!!.episodeList val data = result.data!!
.filter { episode -> episode.isInFree || !episode.isLocked } val id = data.id
.map { ep -> chapterFromObject(ep, result.data.id) } return data.episodeList.mapNotNull { episode ->
if (episode.isInFree || !episode.isLocked) {
chapterFromObject(episode, id)
} else {
null
}
}
} }
override val defaultPopularSort: Int = 0 override val defaultPopularSort: Int = 0

View File

@ -1,10 +0,0 @@
package eu.kanade.tachiyomi.extension.en.akumanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
class AkuManga : Madara("AkuManga", "https://akumanga.com", "en") {
override val id: Long = 107810123708352143
override val chapterUrlSuffix = ""
}

View File

@ -4,4 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
class MangaOneLove : Madara("Manga One Love", "https://mangaonelove.site/", "ru", SimpleDateFormat("dd.MM.yyyy", Locale.US)) class MangaOneLove : Madara("Manga One Love", "https://mangaonelove.site", "ru", SimpleDateFormat("dd.MM.yyyy", Locale.US))

View File

@ -1,20 +0,0 @@
package eu.kanade.tachiyomi.extension.id.pikiranwibu
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class PikiranWibu : Madara(
"Pikiran Wibu",
"https://pikiran-wibu.com",
"id",
SimpleDateFormat("dd MMM yy", Locale("en")),
) {
// popular is the latest
override val supportsLatest = false
override val filterNonMangaItems = false
override val mangaSubString = ""
}

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -4,7 +4,7 @@ import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimit import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
class Rawkuma : MangaThemesia("Rawkuma", "https://rawkuma.com/", "ja") { class Rawkuma : MangaThemesia("Rawkuma", "https://rawkuma.com", "ja") {
override val client: OkHttpClient = super.client.newBuilder() override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(4) .rateLimit(4)

View File

@ -1,19 +0,0 @@
package eu.kanade.tachiyomi.extension.id.sobatmanku
import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
import eu.kanade.tachiyomi.source.model.SChapter
import okhttp3.Response
class SobatManKu : ZeistManga("SobatManKu", "https://www.sobatmanku19.site", "id") {
override val hasFilters = true
override fun chapterListParse(response: Response): List<SChapter> {
return super.chapterListParse(response).onEach {
// fix some chapter name
it.name = it.name.run {
substring(indexOf("Chapter"))
}
}
}
}

View File

@ -352,8 +352,7 @@ abstract class LibGroup(
} }
} }
private fun sortChaptersByTranslator private fun sortChaptersByTranslator(sortingList: String?, chaptersList: JsonArray?, slug: String, userId: String, branches: List<JsonElement>): List<SChapter>? {
(sortingList: String?, chaptersList: JsonArray?, slug: String, userId: String, branches: List<JsonElement>): List<SChapter>? {
var chapters: List<SChapter>? = null var chapters: List<SChapter>? = null
val volume = "(?<=/v)[0-9]+(?=/c[0-9]+)".toRegex() val volume = "(?<=/v)[0-9]+(?=/c[0-9]+)".toRegex()
val tempChaptersList = mutableListOf<SChapter>() val tempChaptersList = mutableListOf<SChapter>()
@ -394,8 +393,7 @@ abstract class LibGroup(
return chapters return chapters
} }
private fun chapterFromElement private fun chapterFromElement(chapterItem: JsonElement, sortingList: String?, slug: String, userId: String, teamIdParam: Int? = null, branches: List<JsonElement>? = null, teams: List<JsonElement>? = null, chaptersList: JsonArray? = null): SChapter {
(chapterItem: JsonElement, sortingList: String?, slug: String, userId: String, teamIdParam: Int? = null, branches: List<JsonElement>? = null, teams: List<JsonElement>? = null, chaptersList: JsonArray? = null): SChapter {
val chapter = SChapter.create() val chapter = SChapter.create()
val volume = chapterItem.jsonObject["chapter_volume"]!!.jsonPrimitive.int val volume = chapterItem.jsonObject["chapter_volume"]!!.jsonPrimitive.int

View File

@ -25,7 +25,6 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Adonis Fansub", "https://manga.adonisfansub.com", "tr", overrideVersionCode = 1), SingleLang("Adonis Fansub", "https://manga.adonisfansub.com", "tr", overrideVersionCode = 1),
SingleLang("Adult Webtoon", "https://adultwebtoon.com", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Adult Webtoon", "https://adultwebtoon.com", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Akimangá", "https://akimanga.com", "pt-BR", isNsfw = true, className = "Akimanga"), SingleLang("Akimangá", "https://akimanga.com", "pt-BR", isNsfw = true, className = "Akimanga"),
SingleLang("AkuManga", "https://akumanga.com", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Akuzenai Arts", "https://akuzenaiarts.org", "en"), SingleLang("Akuzenai Arts", "https://akuzenaiarts.org", "en"),
SingleLang("AllPornComic", "https://allporncomic.com", "en", isNsfw = true), SingleLang("AllPornComic", "https://allporncomic.com", "en", isNsfw = true),
SingleLang("Amuy", "https://apenasmaisumyaoi.com", "pt-BR", isNsfw = true, overrideVersionCode = 1), SingleLang("Amuy", "https://apenasmaisumyaoi.com", "pt-BR", isNsfw = true, overrideVersionCode = 1),
@ -220,7 +219,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Manga Mammy", "https://mangamammy.ru", "ru", isNsfw = true), SingleLang("Manga Mammy", "https://mangamammy.ru", "ru", isNsfw = true),
SingleLang("Manga Mitsu", "https://mangamitsu.com", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Manga Mitsu", "https://mangamitsu.com", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Manga Nerds", "https://manganerds.com", "en"), SingleLang("Manga Nerds", "https://manganerds.com", "en"),
SingleLang("Manga One Love", "https://mangaonelove.site/", "ru", isNsfw = true), SingleLang("Manga One Love", "https://mangaonelove.site", "ru", isNsfw = true, overrideVersionCode = 1),
SingleLang("Manga Online Team", "https://mangaonlineteam.com", "en"), SingleLang("Manga Online Team", "https://mangaonlineteam.com", "en"),
SingleLang("Manga Queen", "https://mangaqueen.net", "en"), SingleLang("Manga Queen", "https://mangaqueen.net", "en"),
SingleLang("Manga Queen.com", "https://mangaqueen.com", "en", isNsfw = true, className = "MangaQueenCom"), SingleLang("Manga Queen.com", "https://mangaqueen.com", "en", isNsfw = true, className = "MangaQueenCom"),
@ -397,7 +396,6 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Paw Manga", "https://pawmanga.com", "en", isNsfw = true), SingleLang("Paw Manga", "https://pawmanga.com", "en", isNsfw = true),
SingleLang("Petrotechsociety", "https://www.petrotechsociety.org", "en", isNsfw = true), SingleLang("Petrotechsociety", "https://www.petrotechsociety.org", "en", isNsfw = true),
SingleLang("Pian Manga", "https://pianmanga.me", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Pian Manga", "https://pianmanga.me", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Pikiran Wibu", "https://pikiran-wibu.com", "id"),
SingleLang("Pink Sea Unicorn", "https://psunicorn.com", "pt-BR", isNsfw = true), SingleLang("Pink Sea Unicorn", "https://psunicorn.com", "pt-BR", isNsfw = true),
SingleLang("Pirulito Rosa", "https://pirulitorosa.site", "pt-BR", isNsfw = true), SingleLang("Pirulito Rosa", "https://pirulitorosa.site", "pt-BR", isNsfw = true),
SingleLang("Platinum Crown", "https://platinumscans.com", "en", overrideVersionCode = 1), SingleLang("Platinum Crown", "https://platinumscans.com", "en", overrideVersionCode = 1),

View File

@ -49,7 +49,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Gremory Mangas", "https://gremorymangas.com", "es"), SingleLang("Gremory Mangas", "https://gremorymangas.com", "es"),
SingleLang("Hanuman Scan", "https://hanumanscan.com", "en"), SingleLang("Hanuman Scan", "https://hanumanscan.com", "en"),
SingleLang("Heroxia", "https://heroxia.com", "id", isNsfw = true), SingleLang("Heroxia", "https://heroxia.com", "id", isNsfw = true),
SingleLang("Hikari Scan", "https://hikariscan.org", "pt-BR", isNsfw = true, overrideVersionCode = 1), SingleLang("Hikari Scan", "https://hikariscan.org", "pt-BR", isNsfw = true, overrideVersionCode = 2),
SingleLang("Imagine Scan", "https://imaginescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 1), SingleLang("Imagine Scan", "https://imaginescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 1),
SingleLang("InariManga", "https://inarimanga.com", "es", overrideVersionCode = 7), SingleLang("InariManga", "https://inarimanga.com", "es", overrideVersionCode = 7),
SingleLang("Infernal Void Scans", "https://void-scans.com", "en", overrideVersionCode = 5), SingleLang("Infernal Void Scans", "https://void-scans.com", "en", overrideVersionCode = 5),
@ -117,7 +117,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Quantum Scans", "https://readers-point.space", "en"), SingleLang("Quantum Scans", "https://readers-point.space", "en"),
SingleLang("Raiki Scan", "https://raikiscan.com", "es"), SingleLang("Raiki Scan", "https://raikiscan.com", "es"),
SingleLang("Raven Scans", "https://ravenscans.com", "en", overrideVersionCode = 1), SingleLang("Raven Scans", "https://ravenscans.com", "en", overrideVersionCode = 1),
SingleLang("Rawkuma", "https://rawkuma.com/", "ja"), SingleLang("Rawkuma", "https://rawkuma.com", "ja", overrideVersionCode = 1),
SingleLang("ReadGojo", "https://readgojo.com", "en"), SingleLang("ReadGojo", "https://readgojo.com", "en"),
SingleLang("Readkomik", "https://readkomik.com", "en", className = "ReadKomik", overrideVersionCode = 1), SingleLang("Readkomik", "https://readkomik.com", "en", className = "ReadKomik", overrideVersionCode = 1),
SingleLang("Sekaikomik", "https://sekaikomik.bio", "id", isNsfw = true, overrideVersionCode = 11), SingleLang("Sekaikomik", "https://sekaikomik.bio", "id", isNsfw = true, overrideVersionCode = 11),

View File

@ -12,7 +12,7 @@ class PaprikaAltGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 1 override val baseVersionCode: Int = 1
override val sources = listOf( override val sources = listOf(
SingleLang("MangaReader.cc", "http://mangareader.cc/", "en", className = "MangaReaderCC", overrideVersionCode = 1), // more sites in the future might use MangaReader.cc 's overrides as they did in the past SingleLang("MangaReader.cc", "http://mangareader.cc", "en", className = "MangaReaderCC", overrideVersionCode = 2), // more sites in the future might use MangaReader.cc 's overrides as they did in the past
) )
companion object { companion object {

View File

@ -1,6 +1,6 @@
package eu.kanade.tachiyomi.multisrc.sinmh package eu.kanade.tachiyomi.multisrc.sinmh
internal class ProgressiveParser(private val text: String) { class ProgressiveParser(private val text: String) {
private var startIndex = 0 private var startIndex = 0
fun substringBetween(left: String, right: String): String = with(text) { fun substringBetween(left: String, right: String): String = with(text) {
val leftIndex = indexOf(left, startIndex) + left.length val leftIndex = indexOf(left, startIndex) + left.length

View File

@ -28,7 +28,6 @@ class ZeistMangaGenerator : ThemeSourceGenerator {
SingleLang("Mikrokosmos Fansub", "https://mikrokosmosfb.blogspot.com", "tr", isNsfw = true), SingleLang("Mikrokosmos Fansub", "https://mikrokosmosfb.blogspot.com", "tr", isNsfw = true),
SingleLang("Shadow Çeviri", "https://shadowceviri.blogspot.com", "tr", className = "ShadowCeviri"), SingleLang("Shadow Çeviri", "https://shadowceviri.blogspot.com", "tr", className = "ShadowCeviri"),
SingleLang("ShiyuraSub", "https://shiyurasub.blogspot.com", "id"), SingleLang("ShiyuraSub", "https://shiyurasub.blogspot.com", "id"),
SingleLang("SobatManKu", "https://www.sobatmanku19.site", "id"),
SingleLang("Tooncubus", "https://www.tooncubus.top", "id", isNsfw = true), SingleLang("Tooncubus", "https://www.tooncubus.top", "id", isNsfw = true),
SingleLang("Tyrant Scans", "https://www.tyrantscans.com", "pt-BR"), SingleLang("Tyrant Scans", "https://www.tyrantscans.com", "pt-BR"),
SingleLang("Yokai", "https://yokai-team.blogspot.com", "ar", overrideVersionCode = 1), SingleLang("Yokai", "https://yokai-team.blogspot.com", "ar", overrideVersionCode = 1),