[HocVienTruyenTranh] Fix (half of) #2468 (#2472)

[HocVienTruyenTranh] Fix (half of) #2468
This commit is contained in:
Logan B 2020-03-24 01:16:36 +13:00 committed by GitHub
parent 73119491b6
commit 6494d9eaa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: HocVienTruyenTranh'
pkgNameSuffix = 'vi.academyvn'
extClass = '.HocVienTruyenTranh'
extVersionCode = 6
extVersionCode = 7
libVersion = '1.2'
}

View File

@ -39,6 +39,7 @@ class HocVienTruyenTranh : ParsedHttpSource() {
element.select("a").first().let {
manga.setUrlWithoutDomain(it.attr("href"))
manga.title = it.attr("title")
manga.thumbnail_url = it.attr("data-thumbnail")
}
return manga
}
@ -137,6 +138,11 @@ class HocVienTruyenTranh : ParsedHttpSource() {
return pages
}
override fun imageRequest(page: Page): Request {
val imgHeaders = headersBuilder().add("Referer", page.url).build()
return GET(page.imageUrl!!, imgHeaders)
}
override fun imageUrlRequest(page: Page) = GET(page.url)
override fun imageUrlParse(document: Document) = ""