Remove Reaper Scans (Turkish) (#540)

This commit is contained in:
beerpsi 2024-01-24 01:43:02 +07:00 committed by Draff
parent 608ed393bd
commit f2658d0619
2 changed files with 11 additions and 36 deletions

View File

@ -1,25 +1,20 @@
package eu.kanade.tachiyomi.extension.all.reaperscans package eu.kanade.tachiyomi.extension.fr.reaperscans
import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.SourceFactory
import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SChapter
import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.HttpUrl.Companion.toHttpUrl
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
class ReaperScansFactory : SourceFactory { class ReaperScans : Madara(
override fun createSources() = listOf( "Reaper Scans",
ReaperScansTr(), "https://reaperscans.fr",
ReaperScansFr(), "fr",
) SimpleDateFormat("dd/MM/yyyy", Locale.US),
} ) {
// Migrated from WpMangaReader to Madara.
abstract class ReaperScans( override val versionId = 2
override val baseUrl: String,
lang: String,
dateFormat: SimpleDateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.US),
) : Madara("Reaper Scans", baseUrl, lang, dateFormat) {
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
val urlElement = element.selectFirst(chapterUrlSelector)!! val urlElement = element.selectFirst(chapterUrlSelector)!!
@ -37,23 +32,3 @@ abstract class ReaperScans(
setUrlWithoutDomain(fixedUrl) setUrlWithoutDomain(fixedUrl)
} }
} }
class ReaperScansTr : ReaperScans(
"https://reaperscanstr.com",
"tr",
SimpleDateFormat("MMMMM dd, yyyy", Locale("tr")),
) {
// Tags are useless as they are just SEO keywords.
override val mangaDetailsSelectorTag = ""
}
class ReaperScansFr : ReaperScans(
"https://reaperscans.fr",
"fr",
SimpleDateFormat("dd/MM/yyyy", Locale.US),
) {
// Migrated from WpMangaReader to Madara.
override val versionId = 2
}

View File

@ -15,7 +15,6 @@ class MadaraGenerator : ThemeSourceGenerator {
override val sources = listOf( override val sources = listOf(
MultiLang("MangaForFree.net", "https://mangaforfree.net", listOf("en", "ko", "all"), isNsfw = true, className = "MangaForFreeFactory", pkgName = "mangaforfree", overrideVersionCode = 1), MultiLang("MangaForFree.net", "https://mangaforfree.net", listOf("en", "ko", "all"), isNsfw = true, className = "MangaForFreeFactory", pkgName = "mangaforfree", overrideVersionCode = 1),
MultiLang("Manhwa18.cc", "https://manhwa18.cc", listOf("en", "ko", "all"), isNsfw = true, className = "Manhwa18CcFactory", pkgName = "manhwa18cc", overrideVersionCode = 4), MultiLang("Manhwa18.cc", "https://manhwa18.cc", listOf("en", "ko", "all"), isNsfw = true, className = "Manhwa18CcFactory", pkgName = "manhwa18cc", overrideVersionCode = 4),
MultiLang("Reaper Scans", "https://reaperscans.com", listOf("fr", "tr"), className = "ReaperScansFactory", pkgName = "reaperscans", overrideVersionCode = 12),
SingleLang("1st Kiss-Manga (unoriginal)", "https://1stkiss-manga.com", "en", className = "FirstKissDashManga"), SingleLang("1st Kiss-Manga (unoriginal)", "https://1stkiss-manga.com", "en", className = "FirstKissDashManga"),
SingleLang("1st Manhwa", "https://1stmanhwa.com", "en", isNsfw = true, className = "FirstManhwa"), SingleLang("1st Manhwa", "https://1stmanhwa.com", "en", isNsfw = true, className = "FirstManhwa"),
SingleLang("1stKissManga.blog", "https://1stkissmanga.blog", "en", isNsfw = true, className = "FirstKissMangaBlog"), SingleLang("1stKissManga.blog", "https://1stkissmanga.blog", "en", isNsfw = true, className = "FirstKissMangaBlog"),
@ -198,6 +197,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Lord Manga", "https://lordmanga.com", "en"), SingleLang("Lord Manga", "https://lordmanga.com", "en"),
SingleLang("Luffy Manga", "https://luffymanga.com", "en"), SingleLang("Luffy Manga", "https://luffymanga.com", "en"),
SingleLang("Lura Toon", "https://luratoon.com", "pt-BR", overrideVersionCode = 7, pkgName = "randomscan", className = "LuraToon"),
SingleLang("LuxManga", "https://luxmanga.net", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("LuxManga", "https://luxmanga.net", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Maid Scan", "https://maidscan.com.br", "pt-BR"), SingleLang("Maid Scan", "https://maidscan.com.br", "pt-BR"),
@ -415,13 +415,13 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("RagnarokScan", "https://ragnarokscan.com", "es", overrideVersionCode = 1), SingleLang("RagnarokScan", "https://ragnarokscan.com", "es", overrideVersionCode = 1),
SingleLang("Raijin Scans", "https://raijinscans.fr", "fr"), SingleLang("Raijin Scans", "https://raijinscans.fr", "fr"),
SingleLang("Rainbow Fairy Scan", "https://rainbowfairyscan.com", "pt-BR"), SingleLang("Rainbow Fairy Scan", "https://rainbowfairyscan.com", "pt-BR"),
SingleLang("Lura Toon", "https://luratoon.com", "pt-BR", overrideVersionCode = 7, pkgName = "randomscan", className = "LuraToon"),
SingleLang("RawDEX", "https://rawdex.net", "ko", isNsfw = true, overrideVersionCode = 1), SingleLang("RawDEX", "https://rawdex.net", "ko", isNsfw = true, overrideVersionCode = 1),
SingleLang("ReadAdult", "https://readadult.net", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("ReadAdult", "https://readadult.net", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("ReaderGen", "https://fr.readergen.fr", "fr"), SingleLang("ReaderGen", "https://fr.readergen.fr", "fr"),
SingleLang("ReadFreeComics", "https://readfreecomics.com", "en"), SingleLang("ReadFreeComics", "https://readfreecomics.com", "en"),
SingleLang("ReadMangaFree", "https://readmangafree.net", "en", isNsfw = true), SingleLang("ReadMangaFree", "https://readmangafree.net", "en", isNsfw = true),
SingleLang("ReadManhua", "https://readmanhua.net", "en", overrideVersionCode = 2), SingleLang("ReadManhua", "https://readmanhua.net", "en", overrideVersionCode = 2),
SingleLang("Reaper Scans", "https://reaperscans.fr", "fr"),
SingleLang("Reset Scans", "https://reset-scans.us", "en"), SingleLang("Reset Scans", "https://reset-scans.us", "en"),
SingleLang("Rh2PlusManga", "https://www.rh2plusmanga.com", "th", isNsfw = true, overrideVersionCode = 5), SingleLang("Rh2PlusManga", "https://www.rh2plusmanga.com", "th", isNsfw = true, overrideVersionCode = 5),
SingleLang("RichtoScan", "https://richtoscan.com", "es"), SingleLang("RichtoScan", "https://richtoscan.com", "es"),