Mangasee (#495)
* mangasee icon and slight code cleanup * mangasee icon and slight code cleanup
This commit is contained in:
parent
27f0511ff9
commit
59f30cd218
|
@ -5,9 +5,9 @@ ext {
|
||||||
appName = 'Tachiyomi: Mangasee'
|
appName = 'Tachiyomi: Mangasee'
|
||||||
pkgNameSuffix = 'en.mangasee'
|
pkgNameSuffix = 'en.mangasee'
|
||||||
extClass = '.Mangasee'
|
extClass = '.Mangasee'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
extVersionSuffix = 2
|
extVersionSuffix = 1
|
||||||
libVersion = '1.0'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
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 |
|
@ -18,7 +18,7 @@ class Mangasee : ParsedHttpSource() {
|
||||||
|
|
||||||
override val name = "Mangasee"
|
override val name = "Mangasee"
|
||||||
|
|
||||||
override val baseUrl = "http://mangaseeonline.net"
|
override val baseUrl = "http://mangaseeonline.us"
|
||||||
|
|
||||||
override val lang = "en"
|
override val lang = "en"
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ class Mangasee : ParsedHttpSource() {
|
||||||
private fun convertQueryToPost(page: Int, url: String): Pair<FormBody.Builder, String> {
|
private fun convertQueryToPost(page: Int, url: String): Pair<FormBody.Builder, String> {
|
||||||
val url = HttpUrl.parse(url)!!
|
val url = HttpUrl.parse(url)!!
|
||||||
val body = FormBody.Builder().add("page", page.toString())
|
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))
|
body.add(url.queryParameterName(i), url.queryParameterValue(i))
|
||||||
}
|
}
|
||||||
val requestUrl = url.scheme() + "://" + url.host() + url.encodedPath()
|
val requestUrl = url.scheme() + "://" + url.host() + url.encodedPath()
|
||||||
|
@ -183,7 +183,7 @@ class Mangasee : ParsedHttpSource() {
|
||||||
val defaultText = it.select("p.clamp2").text()
|
val defaultText = it.select("p.clamp2").text()
|
||||||
val m = recentUpdatesPattern.matcher(defaultText)
|
val m = recentUpdatesPattern.matcher(defaultText)
|
||||||
val title = if (m.matches()) m.group(1) else defaultText
|
val title = if (m.matches()) m.group(1) else defaultText
|
||||||
manga.setUrlWithoutDomain("/manga" + mangaUrl)
|
manga.setUrlWithoutDomain("/manga$mangaUrl")
|
||||||
manga.title = title
|
manga.title = title
|
||||||
}
|
}
|
||||||
return manga
|
return manga
|
||||||
|
|
Loading…
Reference in New Issue