Fix mangastream's latest updates (#168)
* Update version * Change manga name string trim Change string trim and lastestUpdatesSelector to fit the changes on MS website.
This commit is contained in:
parent
c25282c36d
commit
f6e1cc179b
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: Mangastream'
|
appName = 'Tachiyomi: Mangastream'
|
||||||
pkgNameSuffix = "en.mangastream"
|
pkgNameSuffix = "en.mangastream"
|
||||||
extClass = '.Mangastream'
|
extClass = '.Mangastream'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
extVersionSuffix = 1
|
extVersionSuffix = 2
|
||||||
libVersion = '1.0'
|
libVersion = '1.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Mangastream : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun popularMangaSelector() = "table.table-striped > tbody > tr > td:nth-of-type(1)"
|
override fun popularMangaSelector() = "table.table-striped > tbody > tr > td:nth-of-type(1)"
|
||||||
|
|
||||||
override fun latestUpdatesSelector() = "div.side-nav > ul.new-list > li"
|
override fun latestUpdatesSelector() = "div.col-sm-4 > div.side-nav > ul.new-list > li"
|
||||||
|
|
||||||
override fun popularMangaRequest(page: Int) = GET("$baseUrl/manga", headers)
|
override fun popularMangaRequest(page: Int) = GET("$baseUrl/manga", headers)
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class Mangastream : ParsedHttpSource() {
|
||||||
override fun latestUpdatesFromElement(element: Element): SManga {
|
override fun latestUpdatesFromElement(element: Element): SManga {
|
||||||
val manga = SManga.create()
|
val manga = SManga.create()
|
||||||
element.select("a").first().let {
|
element.select("a").first().let {
|
||||||
val name = it.attr("href").substringAfter("http://readms.net/r/").substringBefore("/")
|
val name = it.attr("href").substringAfter("/r/").substringBefore("/")
|
||||||
manga.setUrlWithoutDomain("http://mangastream.com/manga/$name")
|
manga.setUrlWithoutDomain("http://mangastream.com/manga/$name")
|
||||||
manga.title = it.html().substringBefore(" <strong>").substringAfterLast(">")
|
manga.title = it.html().substringBefore(" <strong>").substringAfterLast(">")
|
||||||
}
|
}
|
||||||
|
@ -156,4 +156,4 @@ class Mangastream : ParsedHttpSource() {
|
||||||
override fun imageUrlParse(document: Document) = "http:" + document.getElementById("manga-page").attr("src")
|
override fun imageUrlParse(document: Document) = "http:" + document.getElementById("manga-page").attr("src")
|
||||||
|
|
||||||
override fun getFilterList() = super.getFilterList()
|
override fun getFilterList() = super.getFilterList()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue