World Romance Translation: fix error 404 (#10249)

This commit is contained in:
Riztard Lanthorn 2021-12-27 18:04:02 +07:00 committed by GitHub
parent 1f9be45238
commit cf0ebecafc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 13 additions and 25 deletions

View File

@ -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
}

View File

@ -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
}
}

View File

@ -43,7 +43,8 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 2), SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 2),
SingleLang("Ace Scans", "https://acescans.xyz", "en", isNsfw = true, overrideVersionCode = 1), 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("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 { companion object {

View File

@ -43,7 +43,6 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
SingleLang("Tempest Manga", "https://manga.tempestfansub.com", "tr"), SingleLang("Tempest Manga", "https://manga.tempestfansub.com", "tr"),
SingleLang("xCaliBR Scans", "https://xcalibrscans.com", "en", overrideVersionCode = 2), SingleLang("xCaliBR Scans", "https://xcalibrscans.com", "en", overrideVersionCode = 2),
SingleLang("NoxSubs", "https://noxsubs.com", "tr"), 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("The Apollo Team", "https://theapollo.team", "en"),
SingleLang("Sekte Doujin", "https://sektedoujin.xyz", "id", isNsfw = true, overrideVersionCode = 2), SingleLang("Sekte Doujin", "https://sektedoujin.xyz", "id", isNsfw = true, overrideVersionCode = 2),
SingleLang("Phoenix Fansub", "https://phoenixfansub.com", "es", overrideVersionCode = 1), SingleLang("Phoenix Fansub", "https://phoenixfansub.com", "es", overrideVersionCode = 1),