MangaDods: fix chapter titles, add partial chapter date (#17265)

MangaDods: fix chapter titles, optimize against 301, add chapter date (partial)
This commit is contained in:
Vetle Ledaal 2023-07-26 21:17:59 +02:00 committed by GitHub
parent 5dd7409f93
commit 873f752d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -4,4 +4,12 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class MangaDods : Madara("MangaDods", "https://www.mangadods.com", "en", SimpleDateFormat("yyyy-MM-dd", Locale.US))
class MangaDods : Madara("MangaDods", "https://mangadods.com", "en", SimpleDateFormat("dd-MMM", Locale.US)) {
override val useNewChapterEndpoint = true
override val chapterUrlSelector = "a:not([style])"
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
override fun chapterDateSelector() = "span i"
}

View File

@ -229,7 +229,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("MangaCultivator", "https://mangacultivator.com", "en", overrideVersionCode = 2),
SingleLang("MangaCV", "https://mangacv.com", "en", isNsfw = true),
SingleLang("MangaDeemak", "https://mangadeemak.com", "th", overrideVersionCode = 2),
SingleLang("MangaDods", "https://www.mangadods.com", "en", overrideVersionCode = 2),
SingleLang("MangaDods", "https://mangadods.com", "en", overrideVersionCode = 3),
SingleLang("MangaDol", "https://mangadol.com", "en"),
SingleLang("MangaEffect", "https://mangaeffect.com", "en", overrideVersionCode = 1),
SingleLang("Mangaforfree.com", "https://mangaforfree.com", "en", isNsfw = true, className = "Mangaforfreecom"),