From b6b01276c3805931b5af802eb721e6e2a03b683f Mon Sep 17 00:00:00 2001 From: XdarkX Date: Wed, 15 Sep 2021 20:11:35 +0200 Subject: [PATCH] [Decadence Scans] Use new chapter endpoint (#9073) * Updated Decadence Scans to use the new chapter endpoint to fetch chapters * Added nsfw tag since Decadence Scans contains mature (18+) media --- .../madara/decadencescans/src/DecadenceScans.kt | 9 +++++++++ .../kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 multisrc/overrides/madara/decadencescans/src/DecadenceScans.kt diff --git a/multisrc/overrides/madara/decadencescans/src/DecadenceScans.kt b/multisrc/overrides/madara/decadencescans/src/DecadenceScans.kt new file mode 100644 index 000000000..cc64c9343 --- /dev/null +++ b/multisrc/overrides/madara/decadencescans/src/DecadenceScans.kt @@ -0,0 +1,9 @@ +package eu.kanade.tachiyomi.extension.en.decadencescans + +import eu.kanade.tachiyomi.annotations.Nsfw +import eu.kanade.tachiyomi.multisrc.madara.Madara + +@Nsfw +class DecadenceScans : Madara("Decadence Scans", "https://reader.decadencescans.com", "en") { + override val useNewChapterEndpoint: Boolean = true +} 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 cfafa1766..10e5dfd3f 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 @@ -65,7 +65,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("ComicsWorld", "https://comicsworld.in", "hi"), SingleLang("CopyPasteScan", "https://copypastescan.xyz", "es", overrideVersionCode = 1), SingleLang("DarkYue Realm", "https://darkyuerealm.site/web", "pt-BR", pkgName = "darkyurealm", overrideVersionCode = 4), - SingleLang("Decadence Scans", "https://reader.decadencescans.com", "en", overrideVersionCode = 1), + SingleLang("Decadence Scans", "https://reader.decadencescans.com", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("DiamondFansub", "https://diamondfansub.com", "tr", overrideVersionCode = 1), SingleLang("Disaster Scans", "https://disasterscans.com", "en", overrideVersionCode = 1), SingleLang("Diskus Scan", "https://diskusscan.com", "pt-BR", overrideVersionCode = 1),