Dilbert: Fix (#4634) (#5067)

This commit is contained in:
Crikxi 2020-12-09 20:14:30 +01:00 committed by GitHub
parent 27118d8c2c
commit 01bda012a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Dilbert'
pkgNameSuffix = 'en.dilbert'
extClass = '.Dilbert'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -111,7 +111,7 @@ class Dilbert : ParsedHttpSource() {
override fun imageUrlRequest(page: Page) = GET(page.url, headers)
override fun imageUrlParse(document: Document) =
"https:" + document.first(".img-comic").attr("src")
document.first(".img-comic").attr("src")
private val SManga.year: Int
get() = url.substringAfterLast('?').toInt()