diff --git a/src/all/myreadingmanga/build.gradle b/src/all/myreadingmanga/build.gradle index f910d99e4..5977f602b 100644 --- a/src/all/myreadingmanga/build.gradle +++ b/src/all/myreadingmanga/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: MyReadingManga' pkgNameSuffix = "all.myreadingmanga" extClass = '.MyReadingMangaFactory' - extVersionCode = 4 - extVersionSuffix = 3 + extVersionCode = 5 + extVersionSuffix = 4 libVersion = '1.2' } diff --git a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt index fdb16a1b4..5e9c030d9 100644 --- a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt +++ b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt @@ -65,12 +65,11 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() { override fun searchMangaFromElement(element: Element) = buildManga(element.select("a").first(), element.select("img").first()) - private fun buildManga(titleElement: Element, thumbnailElement: Element): SManga { val manga = SManga.create() manga.setUrlWithoutDomain(titleElement.attr("href")) manga.title = cleanTitle(titleElement.text()) - manga.thumbnail_url = getThumbnail(thumbnailElement.attr("src")) + manga.thumbnail_url = getThumbnail(thumbnailElement.attr("data-src")) return manga } @@ -137,9 +136,9 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() { override fun pageListParse(response: Response): List { val body = response.asJsoup() val pages = mutableListOf() - val elements = body.select("div.separator noscript img") + val elements = body.select("div.separator > img") - (0 until elements.size).mapTo(pages) { Page(it, "", elements[it].attr("src")) } + (0 until elements.size).mapTo(pages) { Page(it, "", elements[it].attr("data-src")) } return pages }