* mangasee icon and slight code cleanup

* mangasee icon and slight code cleanup
This commit is contained in:
Carlos 2018-09-16 13:07:52 -04:00 committed by GitHub
parent 27f0511ff9
commit 59f30cd218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 6 additions and 6 deletions

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -18,7 +18,7 @@ class Mangasee : ParsedHttpSource() {
override val name = "Mangasee"
override val baseUrl = "http://mangaseeonline.net"
override val baseUrl = "http://mangaseeonline.us"
override val lang = "en"
@ -86,7 +86,7 @@ class Mangasee : ParsedHttpSource() {
private fun convertQueryToPost(page: Int, url: String): Pair<FormBody.Builder, String> {
val url = HttpUrl.parse(url)!!
val body = FormBody.Builder().add("page", page.toString())
for (i in 0..url.querySize() - 1) {
for (i in 0 until url.querySize()) {
body.add(url.queryParameterName(i), url.queryParameterValue(i))
}
val requestUrl = url.scheme() + "://" + url.host() + url.encodedPath()
@ -183,7 +183,7 @@ class Mangasee : ParsedHttpSource() {
val defaultText = it.select("p.clamp2").text()
val m = recentUpdatesPattern.matcher(defaultText)
val title = if (m.matches()) m.group(1) else defaultText
manga.setUrlWithoutDomain("/manga" + mangaUrl)
manga.setUrlWithoutDomain("/manga$mangaUrl")
manga.title = title
}
return manga