Update readcomics for readcomics.io (#415)

Update readcomics for readcomics.io
This commit is contained in:
Logan B 2018-07-28 05:40:50 +12:00 committed by Carlos
parent 296ca1c328
commit afa08dea12
2 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: ReadComicWebsite' appName = 'Tachiyomi: ReadComicWebsite'
pkgNameSuffix = "en.readcomictv" pkgNameSuffix = "en.readcomictv"
extClass = '.Readcomictv' extClass = '.Readcomictv'
extVersionCode = 2 extVersionCode = 3
extVersionSuffix = 2 extVersionSuffix = 3
libVersion = '1.0' libVersion = '1.0'
} }

View File

@ -17,7 +17,7 @@ class Readcomictv : ParsedHttpSource() {
override val lang = "en" override val lang = "en"
override val name = "ReadComicsWebsite" override val name = "ReadComicsWebsite"
override val supportsLatest = true override val supportsLatest = true
override val baseUrl = "http://readcomics.website" override val baseUrl = "http://readcomics.io"
override fun chapterFromElement(element: Element): SChapter { override fun chapterFromElement(element: Element): SChapter {
val chapter = SChapter.create() val chapter = SChapter.create()
@ -64,8 +64,8 @@ class Readcomictv : ParsedHttpSource() {
val info = document.select(".manga-details table") val info = document.select(".manga-details table")
manga.author = info.select("tr:nth-child(5) > td:nth-child(2)").text() 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.artist = info.select("tr:nth-child(5) > td:nth-child(2)").text()
manga.description = document.select(".pdesc").text() manga.description = document.select(".detail-desc-content p").text()
manga.thumbnail_url = document.select(".manga-image img").attr("src") manga.thumbnail_url = document.select(".anime-image img").attr("src")
manga.genre = info.select("tr:nth-child(6) > td:nth-child(2)").text() 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() 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 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 popularMangaNextPageSelector(): String? = ".general-nav :last-child"
override fun popularMangaRequest(page: Int): Request { 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" override fun popularMangaSelector(): String = ".manga-box h3 a"
@ -110,7 +110,7 @@ class Readcomictv : ParsedHttpSource() {
} }
override fun searchMangaSelector(): String { override fun searchMangaSelector(): String {
return ".manga-box h3 a" return ".dlb-title"
} }
} }