HHS Update Chapter Image Link (#7665)

* Update build.gradle

* Create HomeHeroScans.kt
This commit is contained in:
FourTOne5 2021-06-15 18:58:46 +06:00 committed by GitHub
parent 488889f170
commit 745e57f4e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Home Hero Scans'
pkgNameSuffix = "en.homeheroscans"
extClass = '.HomeHeroScans'
extVersionCode = 4
extVersionCode = 5
libVersion = '1.2'
}

View File

@ -68,7 +68,7 @@ open class HomeHeroScans : HttpSource() {
genre = jsonObj["genre"]!!.jsonPrimitive.content
title = jsonObj["title"]!!.jsonPrimitive.content
thumbnail_url = baseUrl + jsonObj["cover"]!!.jsonPrimitive.content
url = "/series?series=" + entry.key
url = "/series?series=" + entry.key
status = SManga.ONGOING
}
}
@ -173,7 +173,7 @@ open class HomeHeroScans : HttpSource() {
}
}.map { numpages ->
(0 until numpages).toList().map {
Page(it, "", "https://raw.githubusercontent.com/kbhuynh/mhh-chapters/master/$series/$chapternum/$it.png")
Page(it, "", "$baseUrl/api/image?key=$series/$chapternum/webp/$it.webp")
}
}
}