From f4d7d47f4b61f5a263659d51b2beab10eea509c4 Mon Sep 17 00:00:00 2001 From: Promchai Chooseang Date: Mon, 22 Nov 2021 23:12:52 +0700 Subject: [PATCH] Fixing Rh2PlusManga after madara update (#9896) * Add MikuDoujin * Add MikuDoujin V.1.2.1 * Update MikuDoujin.kt * Update MikuDoujin * Add ability to search using genre * Add Rh2PlusManga * Add Rh2PlusManga V.1.12.2 * Use Madara multi-source themes * Change MikuDoujin gradle and Add Rh2PlusManga generator. * update file to suggestion. * add Rh2PlusManga to MadaraGenerator.kt. * Fix Thai Madara source time format and MikuDoujin pages selector. * add Thai relative time wordlist to Madara parseRelativeDate. * change Rh2PlusManga and Mangauptocat date format. * change Mangauptocat base url. * change MikuDoujin pageListParse selector. * Fix MikuDoujin Chapter number. * fix MikuDoujin when try to fetch chapter name with non numeric ending word. * Add MangaDeemak Source. * add MangaDeemak source to madara multisrc. * Fix Mikudoujin when open Manga with Non single chapter. * scrap both data-src and src attribute from img if available. * Fix Rh2PlusManga unable to fetch page after update Fix Rh2PlusManga error to fetch page after Madara update * Update Rh2PlusManga Version after fixing --- multisrc/overrides/madara/rh2plusmanga/src/Rh2PlusManga.kt | 2 ++ .../java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/madara/rh2plusmanga/src/Rh2PlusManga.kt b/multisrc/overrides/madara/rh2plusmanga/src/Rh2PlusManga.kt index 3c651c8fc..31a331002 100644 --- a/multisrc/overrides/madara/rh2plusmanga/src/Rh2PlusManga.kt +++ b/multisrc/overrides/madara/rh2plusmanga/src/Rh2PlusManga.kt @@ -43,6 +43,8 @@ class Rh2PlusManga : Madara("Rh2PlusManga", "https://www.rh2plusmanga.com", "th" Genre("ลามก", "ecchi") ) + override val pageListParseSelector = "div.reading-content p code img" + override fun pageListParse(document: Document): List { countViews(document) 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 b19a39444..0eb7b4a5b 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 @@ -338,7 +338,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Red Ribbon Scanlator", "https://redribbon.site", "pt-BR", overrideVersionCode = 1), SingleLang("Renascence Scans (Renascans)", "https://new.renascans.com", "en", className = "RenaScans", overrideVersionCode = 1), SingleLang("Reset Scans", "https://reset-scans.com", "en", overrideVersionCode = 4), - SingleLang("Rh2PlusManga", "https://www.rh2plusmanga.com", "th", overrideVersionCode = 2), + SingleLang("Rh2PlusManga", "https://www.rh2plusmanga.com", "th", overrideVersionCode = 3), SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1), SingleLang("S2Manga", "https://s2manga.com", "en", overrideVersionCode = 1), SingleLang("SISI GELAP", "https://sigel.xyz", "id", overrideVersionCode = 3),