From cf0ebecafc5f81797836cdd3f525219ba5400340 Mon Sep 17 00:00:00 2001 From: Riztard Lanthorn Date: Mon, 27 Dec 2021 18:04:02 +0700 Subject: [PATCH] World Romance Translation: fix error 404 (#10249) --- .../res/mipmap-hdpi/ic_launcher.png | Bin .../res/mipmap-mdpi/ic_launcher.png | Bin .../res/mipmap-xhdpi/ic_launcher.png | Bin .../res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher.png | Bin .../res/web_hi_res_512.png | Bin .../src/WorldRomanceTranslation.kt | 11 +++++++++ .../src/WorldRomanceTranslation.kt | 23 ------------------ .../wpmangareader/WPMangaReaderGenerator.kt | 3 ++- .../wpmangastream/WPMangaStreamGenerator.kt | 1 - 10 files changed, 13 insertions(+), 25 deletions(-) rename multisrc/overrides/{wpmangastream => wpmangareader}/worldromancetranslation/res/mipmap-hdpi/ic_launcher.png (100%) rename multisrc/overrides/{wpmangastream => wpmangareader}/worldromancetranslation/res/mipmap-mdpi/ic_launcher.png (100%) rename multisrc/overrides/{wpmangastream => wpmangareader}/worldromancetranslation/res/mipmap-xhdpi/ic_launcher.png (100%) rename multisrc/overrides/{wpmangastream => wpmangareader}/worldromancetranslation/res/mipmap-xxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{wpmangastream => wpmangareader}/worldromancetranslation/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{wpmangastream => wpmangareader}/worldromancetranslation/res/web_hi_res_512.png (100%) create mode 100644 multisrc/overrides/wpmangareader/worldromancetranslation/src/WorldRomanceTranslation.kt delete mode 100644 multisrc/overrides/wpmangastream/worldromancetranslation/src/WorldRomanceTranslation.kt diff --git a/multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-hdpi/ic_launcher.png rename to multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-hdpi/ic_launcher.png diff --git a/multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-mdpi/ic_launcher.png rename to multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-mdpi/ic_launcher.png diff --git a/multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-xhdpi/ic_launcher.png rename to multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-xhdpi/ic_launcher.png diff --git a/multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-xxhdpi/ic_launcher.png rename to multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-xxhdpi/ic_launcher.png diff --git a/multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/wpmangastream/worldromancetranslation/res/mipmap-xxxhdpi/ic_launcher.png rename to multisrc/overrides/wpmangareader/worldromancetranslation/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/multisrc/overrides/wpmangastream/worldromancetranslation/res/web_hi_res_512.png b/multisrc/overrides/wpmangareader/worldromancetranslation/res/web_hi_res_512.png similarity index 100% rename from multisrc/overrides/wpmangastream/worldromancetranslation/res/web_hi_res_512.png rename to multisrc/overrides/wpmangareader/worldromancetranslation/res/web_hi_res_512.png diff --git a/multisrc/overrides/wpmangareader/worldromancetranslation/src/WorldRomanceTranslation.kt b/multisrc/overrides/wpmangareader/worldromancetranslation/src/WorldRomanceTranslation.kt new file mode 100644 index 000000000..10354351e --- /dev/null +++ b/multisrc/overrides/wpmangareader/worldromancetranslation/src/WorldRomanceTranslation.kt @@ -0,0 +1,11 @@ +package eu.kanade.tachiyomi.extension.id.worldromancetranslation + +import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader +import java.text.SimpleDateFormat +import java.util.Locale + +class WorldRomanceTranslation : WPMangaReader("World Romance Translation", "https://wrt.my.id", "id", "/komik", SimpleDateFormat("MMMM dd, yyyy", Locale("id"))) { + override val projectPageString = "/project-wrt" + + override val hasProjectPage = true +} diff --git a/multisrc/overrides/wpmangastream/worldromancetranslation/src/WorldRomanceTranslation.kt b/multisrc/overrides/wpmangastream/worldromancetranslation/src/WorldRomanceTranslation.kt deleted file mode 100644 index 254234f57..000000000 --- a/multisrc/overrides/wpmangastream/worldromancetranslation/src/WorldRomanceTranslation.kt +++ /dev/null @@ -1,23 +0,0 @@ -package eu.kanade.tachiyomi.extension.id.worldromancetranslation - -import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream -import eu.kanade.tachiyomi.source.model.SChapter -import org.jsoup.nodes.Element -import java.text.SimpleDateFormat -import java.util.Locale - -class WorldRomanceTranslation : WPMangaStream("World Romance Translation", "https://wrt.my.id/", "id", SimpleDateFormat("MMMM dd, yyyy", Locale("id"))) { - override val projectPageString = "/project-wrt" - - override val hasProjectPage = true - - override fun chapterFromElement(element: Element): SChapter { - val urlElement = element.select(".lchx > a, span.leftoff a, div.eph-num > a").first() - val chapter = SChapter.create() - chapter.setUrlWithoutDomain(urlElement.attr("href")) - chapter.name = "Chapter " + chapter.url.substringAfterLast("chapter-") - .replace("/", "").replace("-bahasa-indonesia", "").replace("-", ".") - chapter.date_upload = element.select("span.rightoff, time, span.chapterdate").firstOrNull()?.text()?.let { parseChapterDate(it) } ?: 0 - return chapter - } -} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt index 469beb4dd..f64537777 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt @@ -43,7 +43,8 @@ class WPMangaReaderGenerator : ThemeSourceGenerator { SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 2), SingleLang("Ace Scans", "https://acescans.xyz", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Silence Scan", "https://silencescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 5), - SingleLang("YANP Fansub", "https://yanpfansub.com", "pt-BR", isNsfw = true) + SingleLang("YANP Fansub", "https://yanpfansub.com", "pt-BR", isNsfw = true), + SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 6), ) companion object { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt index 70237fb0a..9d60f1c94 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt @@ -43,7 +43,6 @@ class WPMangaStreamGenerator : ThemeSourceGenerator { SingleLang("Tempest Manga", "https://manga.tempestfansub.com", "tr"), SingleLang("xCaliBR Scans", "https://xcalibrscans.com", "en", overrideVersionCode = 2), SingleLang("NoxSubs", "https://noxsubs.com", "tr"), - SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 4), SingleLang("The Apollo Team", "https://theapollo.team", "en"), SingleLang("Sekte Doujin", "https://sektedoujin.xyz", "id", isNsfw = true, overrideVersionCode = 2), SingleLang("Phoenix Fansub", "https://phoenixfansub.com", "es", overrideVersionCode = 1),