From 4b6e3c630906778991d8be0a3ff458d75cefcf8d Mon Sep 17 00:00:00 2001 From: Logan B Date: Mon, 23 Mar 2020 15:43:07 +1300 Subject: [PATCH] [Madara] DisasterScans: Fix manga title not appearing; add MangaWOW + MangaStream (#2471) [Madara] DisasterScans: Fix manga title not appearing; add MangaWOW + MangaStream --- src/all/madara/build.gradle | 2 +- .../extension/all/madara/MadaraFactory.kt | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/all/madara/build.gradle b/src/all/madara/build.gradle index 9902dcdd5..ca9bc43ba 100644 --- a/src/all/madara/build.gradle +++ b/src/all/madara/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Madara (multiple sources)' pkgNameSuffix = "all.madara" extClass = '.MadaraFactory' - extVersionCode = 60 + extVersionCode = 61 libVersion = '1.2' } diff --git a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt index 4b891a383..38015f5f3 100644 --- a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt +++ b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt @@ -79,7 +79,9 @@ class MadaraFactory : SourceFactory { ThreeSixtyFiveManga(), DisasterScans(), MangaKiss(), - MangaDods() + MangaDods(), + MangaWOW(), + MangaStream() ) } @@ -415,7 +417,7 @@ class TeabeerComics : Madara("Teabeer Comics", "https://teabeercomics.com", "en" class KingzManga : Madara("KingzManga", "https://kingzmanga.com", "ar") class YaoiToshokan : Madara("Yaoi Toshokan", "https://www.yaoitoshokan.com.br", "pt-BR") { - override val popularMangaUrlSelector = "div.post-title a:not([target])" //Page has custum link to scan website + override val popularMangaUrlSelector = "div.post-title a:not([target])" //Page has custom link to scan website override fun chapterListParse(response: Response): List { //Chapters are listed old to new return super.chapterListParse(response).reversed() } @@ -473,7 +475,9 @@ class ThreeSixtyFiveManga: Madara("365Manga","https://365manga.com","en") { override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/manga/page/$page/?m_orderby=latest", headers) } -class DisasterScans: Madara("Disaster Scans","https://disasterscans.com","en") +class DisasterScans: Madara("Disaster Scans","https://disasterscans.com","en") { + override val popularMangaUrlSelector = "div.post-title a:last-child" +} class MangaKiss: Madara("MangaKiss", "https://mangakiss.org", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US)) { override fun headersBuilder(): Headers.Builder = super.headersBuilder().add("Referer", baseUrl) @@ -481,3 +485,7 @@ class MangaKiss: Madara("MangaKiss", "https://mangakiss.org", "en", SimpleDateFo class MangaDods: Madara("MangaDods", "https://www.mangadods.com", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US)) +class MangaWOW: Madara("MangaWOW", "https://mangawow.com", "tr") + +class MangaStream: Madara("MangaStream", "https://www.mangastream.cc", "en") +