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'
|
||||
pkgNameSuffix = "en.mangastream"
|
||||
extClass = '.Mangastream'
|
||||
extVersionCode = 1
|
||||
extVersionSuffix = 1
|
||||
extVersionCode = 2
|
||||
extVersionSuffix = 2
|
||||
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 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)
|
||||
|
||||
|
@ -46,7 +46,7 @@ class Mangastream : ParsedHttpSource() {
|
|||
override fun latestUpdatesFromElement(element: Element): SManga {
|
||||
val manga = SManga.create()
|
||||
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.title = it.html().substringBefore(" <strong>").substringAfterLast(">")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue