changed icon (#222)

renamed oneshots to chapters
fixed chapters search
fixed chapters paging
This commit is contained in:
Carlos 2018-02-27 13:57:32 -05:00 committed by GitHub
parent b223402d0f
commit 367be55c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 16 additions and 9 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: Dynasty'
pkgNameSuffix = "en.dynasty"
extClass = '.DynastyFactory'
extVersionCode = 3
extVersionSuffix = 3
extVersionCode = 4
extVersionSuffix = 4
libVersion = '1.2'
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 122 KiB

View File

@ -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)

View File

@ -13,7 +13,7 @@ class DynastyFactory : SourceFactory {
fun getAllDynasty() =
listOf(
DynastyAnthologies(),
DynastyOneshots(),
DynastyChapters(),
DynastyDoujins(),
DynastyIssues(),
DynastySeries())

View File

@ -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"