Update src/main/kotlin/org/koitharu/kotatsu/parsers/site/en/DynastyScans.kt

pull/226/head
Koitharu 3 years ago committed by GitHub
parent bb4ea05375
commit c290ba5436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,7 +134,7 @@ internal class DynastyScans(context: MangaLoaderContext) : PagedMangaParser(cont
val dateFormat = SimpleDateFormat("MMM dd yy", sourceLocale)
return doc.body().select("dl.chapter-list dd").mapChapters { i, li ->
val a = li.selectFirstOrThrow("a")
val href = a.attrAsRelativeUrlOrNull("href") ?: li.parseFailed("Link is missing")
val href = a.attrAsRelativeUrl("href")
val dateText = li.select("small").last()?.text()?.replace("released ", "")?.replace("'", "")
MangaChapter(
id = generateUid(href),

Loading…
Cancel
Save