Dynasty: added genres to indicate whether a title is original or from specific doujins (and display them) (#14844)
* added genres to indicate whether a title is original * Delete local.properties
This commit is contained in:
parent
8950d236ac
commit
6cbee38a9a
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'Dynasty'
|
||||
pkgNameSuffix = 'en.dynasty'
|
||||
extClass = '.DynastyFactory'
|
||||
extVersionCode = 20
|
||||
extVersionCode = 21
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -41,6 +41,8 @@ class DynastyChapters : DynastyScans() {
|
|||
}
|
||||
|
||||
val genreElements = document.select(".tags a")
|
||||
val doujinElements = document.select("a[href*=doujins]")
|
||||
genreElements.addAll(doujinElements)
|
||||
parseGenres(genreElements, manga)
|
||||
|
||||
return manga
|
||||
|
|
|
@ -130,7 +130,10 @@ abstract class DynastyScans : ParsedHttpSource() {
|
|||
}
|
||||
|
||||
protected fun parseGenres(document: Document, manga: SManga, select: String = "div.tags > div.tag-tags a") {
|
||||
parseGenres(document.select(select), manga)
|
||||
val tagElements = document.select(select)
|
||||
val doujinElements = document.select("div.tags > h2.tag-title > small > a[href*=doujins]")
|
||||
tagElements.addAll(doujinElements)
|
||||
parseGenres(tagElements, manga)
|
||||
}
|
||||
|
||||
protected fun parseGenres(elements: Elements, manga: SManga) {
|
||||
|
|
Loading…
Reference in New Issue