Wiemanga fix images not loading (#217)

* fixed images not loading
added icon

* updated build.gradle
This commit is contained in:
Carlos 2018-02-26 11:49:42 -05:00 committed by GitHub
parent 3f14d851e1
commit 93c84ee183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 4 deletions

View File

@ -5,9 +5,9 @@ ext {
appName = 'Tachiyomi: WieManga'
pkgNameSuffix = "de.wiemanga"
extClass = '.WieManga'
extVersionCode = 1
extVersionSuffix = 1
libVersion = '1.0'
extVersionCode = 2
extVersionSuffix = 0
libVersion = '1.2'
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -17,12 +17,16 @@ class WieManga : ParsedHttpSource() {
override val name = "Wie Manga!"
override val baseUrl = "http://www.wiemanga.com"
override val baseUrl = "https://www.wiemanga.com"
override val lang = "de"
override val supportsLatest = true
private fun imageHeader(refer: String) = super.headersBuilder()
.add("Referer", refer)
.build()
override fun popularMangaSelector() = ".booklist td > div"
override fun latestUpdatesSelector() = ".booklist td > div"
@ -117,6 +121,10 @@ class WieManga : ParsedHttpSource() {
return pages
}
override fun imageUrlRequest(page: Page): Request {
return GET(page.url, imageHeader(page.url))
}
override fun imageUrlParse(document: Document) = document.select("img#comicpic").first().attr("src")
}