MangaAe - fix latest (#2823)

This commit is contained in:
Mike 2020-04-25 15:26:23 -04:00 committed by GitHub
parent 7235c83998
commit 9638620270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Manga.ae'
pkgNameSuffix = 'ar.mangaae'
extClass = '.MangaAe'
extVersionCode = 5
extVersionCode = 6
libVersion = '1.2'
}

View File

@ -32,7 +32,7 @@ class MangaAe : ParsedHttpSource() {
.build()
override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/73.0")
.add("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/75.0")
.add("Referer", baseUrl)
// Popular
@ -71,10 +71,8 @@ class MangaAe : ParsedHttpSource() {
} else {
lazysrc
}
element.select("a")[2].let {
setUrlWithoutDomain(it.attr("abs:href"))
title = it.text()
}
setUrlWithoutDomain(element.select("a:has(img)").attr("href"))
title = element.select("a").last().text()
}
override fun latestUpdatesNextPageSelector(): String? = null