From 84714f887f96b97d15a917cfef32b4038d26d410 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Sat, 19 Mar 2022 02:23:32 +0000 Subject: [PATCH] Madara: add arabic status. 3asq: fix date format, selector (#11171) --- multisrc/overrides/madara/manga3asq/src/Manga3asq.kt | 12 +++++++++++- .../eu/kanade/tachiyomi/multisrc/madara/Madara.kt | 4 ++-- .../tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/multisrc/overrides/madara/manga3asq/src/Manga3asq.kt b/multisrc/overrides/madara/manga3asq/src/Manga3asq.kt index 236dad51f..6de2e480f 100644 --- a/multisrc/overrides/madara/manga3asq/src/Manga3asq.kt +++ b/multisrc/overrides/madara/manga3asq/src/Manga3asq.kt @@ -1,7 +1,17 @@ package eu.kanade.tachiyomi.extension.ar.manga3asq import eu.kanade.tachiyomi.multisrc.madara.Madara +import java.text.SimpleDateFormat +import java.util.Locale -class Manga3asq : Madara("مانجا العاشق", "https://3asq.org", "ar") { +class Manga3asq : Madara( + "مانجا العاشق", + "https://3asq.org", + "ar", + // \u060c (،) U+060C : ARABIC COMMA + dateFormat = SimpleDateFormat("d MMM\u060c yyy", Locale("ar")) +) { override val useNewChapterEndpoint: Boolean = true + + override val popularMangaUrlSelector = "div.post-title a:not([target])" } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/Madara.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/Madara.kt index 5bb698ca0..f0953976d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/Madara.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/Madara.kt @@ -384,13 +384,13 @@ abstract class Madara( // Manga Details Parse protected val completedStatusList: Array = arrayOf( - "Completed", "Completo", "Concluído", "Concluido", "Terminé", "Hoàn Thành" + "Completed", "Completo", "Concluído", "Concluido", "Terminé", "Hoàn Thành", "مكتملة" ) protected val ongoingStatusList: Array = arrayOf( "OnGoing", "Продолжается", "Updating", "Em Lançamento", "Em andamento", "Em Andamento", "En cours", "Ativo", "Lançando", "Đang Tiến Hành", "Devam Ediyor", "Devam ediyor", - "In Corso", "In Arrivo" + "In Corso", "In Arrivo", "مستمرة" ) override fun mangaDetailsParse(document: Document): SManga { 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 f34903864..c5b55bec7 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 @@ -10,7 +10,7 @@ class MadaraGenerator : ThemeSourceGenerator { override val themeClass = "Madara" - override val baseVersionCode: Int = 16 + override val baseVersionCode: Int = 17 override val sources = listOf( MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 9),