From 2ee1fccbce19fcae6ae5433e7e885f7d29ccf119 Mon Sep 17 00:00:00 2001 From: seew3l <90949336+seew3l@users.noreply.github.com> Date: Wed, 3 May 2023 13:29:55 -0500 Subject: [PATCH] Move TecnoScan from MangaThemesia to Madara (#16266) Move TecnoScan to Madara --- .../tecnoscan/res/mipmap-hdpi/ic_launcher.png | Bin .../tecnoscan/res/mipmap-mdpi/ic_launcher.png | Bin .../tecnoscan/res/mipmap-xhdpi/ic_launcher.png | Bin .../tecnoscan/res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher.png | Bin .../tecnoscan/res/web_hi_res_512.png | Bin .../overrides/madara/tecnoscan/src/TecnoScan.kt | 16 ++++++++++++++++ .../mangathemesia/tecnoscan/src/TecnoScan.kt | 15 --------------- .../multisrc/madara/MadaraGenerator.kt | 1 + .../mangathemesia/MangaThemesiaGenerator.kt | 1 - 10 files changed, 17 insertions(+), 16 deletions(-) rename multisrc/overrides/{mangathemesia => madara}/tecnoscan/res/mipmap-hdpi/ic_launcher.png (100%) rename multisrc/overrides/{mangathemesia => madara}/tecnoscan/res/mipmap-mdpi/ic_launcher.png (100%) rename multisrc/overrides/{mangathemesia => madara}/tecnoscan/res/mipmap-xhdpi/ic_launcher.png (100%) rename multisrc/overrides/{mangathemesia => madara}/tecnoscan/res/mipmap-xxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{mangathemesia => madara}/tecnoscan/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{mangathemesia => madara}/tecnoscan/res/web_hi_res_512.png (100%) create mode 100644 multisrc/overrides/madara/tecnoscan/src/TecnoScan.kt delete mode 100644 multisrc/overrides/mangathemesia/tecnoscan/src/TecnoScan.kt diff --git a/multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/madara/tecnoscan/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-hdpi/ic_launcher.png rename to multisrc/overrides/madara/tecnoscan/res/mipmap-hdpi/ic_launcher.png diff --git a/multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/madara/tecnoscan/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-mdpi/ic_launcher.png rename to multisrc/overrides/madara/tecnoscan/res/mipmap-mdpi/ic_launcher.png diff --git a/multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/madara/tecnoscan/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-xhdpi/ic_launcher.png rename to multisrc/overrides/madara/tecnoscan/res/mipmap-xhdpi/ic_launcher.png diff --git a/multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/madara/tecnoscan/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-xxhdpi/ic_launcher.png rename to multisrc/overrides/madara/tecnoscan/res/mipmap-xxhdpi/ic_launcher.png diff --git a/multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/madara/tecnoscan/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/mangathemesia/tecnoscan/res/mipmap-xxxhdpi/ic_launcher.png rename to multisrc/overrides/madara/tecnoscan/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/multisrc/overrides/mangathemesia/tecnoscan/res/web_hi_res_512.png b/multisrc/overrides/madara/tecnoscan/res/web_hi_res_512.png similarity index 100% rename from multisrc/overrides/mangathemesia/tecnoscan/res/web_hi_res_512.png rename to multisrc/overrides/madara/tecnoscan/res/web_hi_res_512.png diff --git a/multisrc/overrides/madara/tecnoscan/src/TecnoScan.kt b/multisrc/overrides/madara/tecnoscan/src/TecnoScan.kt new file mode 100644 index 000000000..be1f4b983 --- /dev/null +++ b/multisrc/overrides/madara/tecnoscan/src/TecnoScan.kt @@ -0,0 +1,16 @@ +package eu.kanade.tachiyomi.extension.es.tecnoscan + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import java.text.SimpleDateFormat +import java.util.Locale + +class TecnoScan : Madara( + "Tecno Scan", + "https://tecnoscann.com", + "es", + dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es")), +) { + // Site moved from MangaThemesia to Madara + override val versionId = 2 + override val useNewChapterEndpoint = true +} diff --git a/multisrc/overrides/mangathemesia/tecnoscan/src/TecnoScan.kt b/multisrc/overrides/mangathemesia/tecnoscan/src/TecnoScan.kt deleted file mode 100644 index 87fd53690..000000000 --- a/multisrc/overrides/mangathemesia/tecnoscan/src/TecnoScan.kt +++ /dev/null @@ -1,15 +0,0 @@ -package eu.kanade.tachiyomi.extension.es.tecnoscan - -import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia -import java.text.SimpleDateFormat -import java.util.Locale - -class TecnoScan : MangaThemesia( - "Tecno Scan", - "https://tecnoscann.com", - "es", - dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es")), -) { - override val seriesStatusSelector = ".tsinfo .imptdt:contains(Estado) i" - override val seriesAuthorSelector = ".fmed b:contains(Autor)+span" -} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index b287955ee..9d5bda8ce 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -398,6 +398,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("TappyToon.Net", "https://tappytoon.net", "en", className = "Tappytoonnet"), SingleLang("Tatakae Scan", "https://tatakaescan.com", "pt-BR", isNsfw = true, overrideVersionCode = 2), SingleLang("Taurus Fansub", "https://taurusfansub.com", "es"), + SingleLang("Tecno Scan", "https://tecnoscann.com", "es"), SingleLang("TeenManhua", "https://teenmanhua.com", "en"), SingleLang("The Beginning After The End", "https://www.thebeginningaftertheend.fr", "fr", overrideVersionCode = 1), SingleLang("The Guild", "https://theguildscans.com", "en"), diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index 4ef48982a..79d7e801e 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -113,7 +113,6 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Surya Scans", "https://suryascans.com", "en"), SingleLang("Sushi-Scan", "https://sushiscan.net", "fr", className = "SushiScan", overrideVersionCode = 3), SingleLang("Tarot Scans", "https://www.tarotscans.com", "tr"), - SingleLang("Tecno Scan", "https://tecnoscann.com", "es", overrideVersionCode = 2), SingleLang("The Apollo Team", "https://theapollo.team", "en"), SingleLang("Tsundoku Traduções", "https://tsundoku.com.br", "pt-BR", className = "TsundokuTraducoes", overrideVersionCode = 9), SingleLang("TukangKomik", "https://tukangkomik.id", "id", overrideVersionCode = 1),