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:
Tien Long Lam 2023-01-11 06:05:37 +11:00 committed by GitHub
parent 8950d236ac
commit 6cbee38a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Dynasty'
pkgNameSuffix = 'en.dynasty'
extClass = '.DynastyFactory'
extVersionCode = 20
extVersionCode = 21
}
apply from: "$rootDir/common.gradle"

View File

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

View File

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