Doujins added Scanlator parsing (#9391)

* added scanlator parsing

* Update build.gradle
This commit is contained in:
jopejoe1 2021-10-09 01:13:43 +13:00 committed by GitHub
parent 119c81ef2f
commit 4bb792b74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Doujins' extName = 'Doujins'
pkgNameSuffix = 'en.doujins' pkgNameSuffix = 'en.doujins'
extClass = '.Doujins' extClass = '.Doujins'
extVersionCode = 3 extVersionCode = 4
isNsfw = true isNsfw = true
} }

View File

@ -46,10 +46,12 @@ class Doujins : HttpSource() {
override fun chapterListParse(response: Response): List<SChapter> { override fun chapterListParse(response: Response): List<SChapter> {
return listOf( return listOf(
SChapter.create().apply { SChapter.create().apply {
var element = response.asJsoup()
name = "Chapter" name = "Chapter"
scanlator = element.select("div.folder-message:contains(Translated)").text().substringAfter("by:").trim()
setUrlWithoutDomain(response.request.url.toString()) setUrlWithoutDomain(response.request.url.toString())
val dateAndPageCountString = response.asJsoup().select(".text-md-right.text-sm-left > .folder-message").text() val dateAndPageCountString = element.select(".text-md-right.text-sm-left > .folder-message").text()
val date = dateAndPageCountString.substringBefore("") val date = dateAndPageCountString.substringBefore("")
for (dateFormat in MANGA_DETAILS_DATE_FORMAT) { for (dateFormat in MANGA_DETAILS_DATE_FORMAT) {