changed icon (#222)
renamed oneshots to chapters fixed chapters search fixed chapters paging
|
@ -5,8 +5,8 @@ ext {
|
|||
appName = 'Tachiyomi: Dynasty'
|
||||
pkgNameSuffix = "en.dynasty"
|
||||
extClass = '.DynastyFactory'
|
||||
extVersionCode = 3
|
||||
extVersionSuffix = 3
|
||||
extVersionCode = 4
|
||||
extVersionSuffix = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 122 KiB |
|
@ -12,16 +12,17 @@ import org.jsoup.nodes.Element
|
|||
import java.text.SimpleDateFormat
|
||||
import java.util.*
|
||||
|
||||
class DynastyOneshots : DynastyScans() {
|
||||
class DynastyChapters : DynastyScans() {
|
||||
override val name = "Dynasty-Chapters"
|
||||
override fun popularMangaInitialUrl() = ""
|
||||
|
||||
override val name = "Dynasty- Oneshots"
|
||||
|
||||
override fun popularMangaInitialUrl() = "$baseUrl/search?q=&with%5B%5D=5102&sort="
|
||||
private fun popularMangaInitialUrl(page: Int) = "$baseUrl/search?q=&classes%5B%5D=Chapter&page=$page=$&sort="
|
||||
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
||||
return GET("$baseUrl/search?q=$query&with%5B%5D=5102&sort=", headers)
|
||||
return GET("$baseUrl/search?q=$query&classes%5B%5D=Chapter&sort=", headers)
|
||||
}
|
||||
|
||||
|
||||
override fun mangaDetailsParse(document: Document): SManga = SManga.create()
|
||||
|
||||
override fun searchMangaSelector() = "dd"
|
||||
|
@ -66,6 +67,12 @@ class DynastyOneshots : DynastyScans() {
|
|||
return chapter
|
||||
}
|
||||
|
||||
override fun popularMangaRequest(page: Int): Request {
|
||||
return GET(popularMangaInitialUrl(page), headers)
|
||||
}
|
||||
|
||||
override fun popularMangaNextPageSelector() = searchMangaNextPageSelector()
|
||||
|
||||
override fun popularMangaSelector() = searchMangaSelector()
|
||||
|
||||
override fun popularMangaFromElement(element: Element) = searchMangaFromElement(element)
|
|
@ -13,7 +13,7 @@ class DynastyFactory : SourceFactory {
|
|||
fun getAllDynasty() =
|
||||
listOf(
|
||||
DynastyAnthologies(),
|
||||
DynastyOneshots(),
|
||||
DynastyChapters(),
|
||||
DynastyDoujins(),
|
||||
DynastyIssues(),
|
||||
DynastySeries())
|
||||
|
|
|
@ -39,7 +39,7 @@ abstract class DynastyScans : ParsedHttpSource() {
|
|||
|
||||
override fun popularMangaRequest(page: Int): Request {
|
||||
return GET(popularMangaInitialUrl(), headers)
|
||||
}
|
||||
}
|
||||
|
||||
override fun popularMangaSelector() = "ul.thumbnails > li.span2"
|
||||
|
||||
|
|