From afa08dea1291d0e980a000234485c1a64960f66f Mon Sep 17 00:00:00 2001 From: Logan B Date: Sat, 28 Jul 2018 05:40:50 +1200 Subject: [PATCH] Update readcomics for readcomics.io (#415) Update readcomics for readcomics.io --- src/en/readcomictv/build.gradle | 4 ++-- .../tachiyomi/extension/en/readcomictv/Readcomictv.kt | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/en/readcomictv/build.gradle b/src/en/readcomictv/build.gradle index 9081f0cd7..60cdb3ec7 100644 --- a/src/en/readcomictv/build.gradle +++ b/src/en/readcomictv/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: ReadComicWebsite' pkgNameSuffix = "en.readcomictv" extClass = '.Readcomictv' - extVersionCode = 2 - extVersionSuffix = 2 + extVersionCode = 3 + extVersionSuffix = 3 libVersion = '1.0' } diff --git a/src/en/readcomictv/src/eu/kanade/tachiyomi/extension/en/readcomictv/Readcomictv.kt b/src/en/readcomictv/src/eu/kanade/tachiyomi/extension/en/readcomictv/Readcomictv.kt index 8076d98a4..333c9b011 100644 --- a/src/en/readcomictv/src/eu/kanade/tachiyomi/extension/en/readcomictv/Readcomictv.kt +++ b/src/en/readcomictv/src/eu/kanade/tachiyomi/extension/en/readcomictv/Readcomictv.kt @@ -17,7 +17,7 @@ class Readcomictv : ParsedHttpSource() { override val lang = "en" override val name = "ReadComicsWebsite" override val supportsLatest = true - override val baseUrl = "http://readcomics.website" + override val baseUrl = "http://readcomics.io" override fun chapterFromElement(element: Element): SChapter { val chapter = SChapter.create() @@ -64,8 +64,8 @@ class Readcomictv : ParsedHttpSource() { val info = document.select(".manga-details table") manga.author = info.select("tr:nth-child(5) > td:nth-child(2)").text() manga.artist = info.select("tr:nth-child(5) > td:nth-child(2)").text() - manga.description = document.select(".pdesc").text() - manga.thumbnail_url = document.select(".manga-image img").attr("src") + manga.description = document.select(".detail-desc-content p").text() + manga.thumbnail_url = document.select(".anime-image img").attr("src") manga.genre = info.select("tr:nth-child(6) > td:nth-child(2)").text() val status = info.select("tr:nth-child(4) > td:nth-child(2)").text() manga.status = if (status == "Completed") SManga.COMPLETED else if (status == "Ongoing") SManga.ONGOING else SManga.UNKNOWN @@ -89,7 +89,7 @@ class Readcomictv : ParsedHttpSource() { override fun popularMangaNextPageSelector(): String? = ".general-nav :last-child" override fun popularMangaRequest(page: Int): Request { - return GET(baseUrl + "/popular-comic/$page",headers) + return GET(baseUrl + "/popular-comics/$page",headers) } override fun popularMangaSelector(): String = ".manga-box h3 a" @@ -110,7 +110,7 @@ class Readcomictv : ParsedHttpSource() { } override fun searchMangaSelector(): String { - return ".manga-box h3 a" + return ".dlb-title" } } \ No newline at end of file