[DocTruyen3Q] Fix covers
This commit is contained in:
@@ -43,6 +43,9 @@ internal abstract class WpComicsParser(
|
||||
isSearchSupported = true,
|
||||
)
|
||||
|
||||
@JvmField
|
||||
protected val coverSrcAttrs = arrayOf("data-original", "src")
|
||||
|
||||
override suspend fun getFilterOptions() = MangaListFilterOptions(
|
||||
availableTags = fetchAvailableTags(),
|
||||
availableStates = EnumSet.of(MangaState.ONGOING, MangaState.FINISHED),
|
||||
@@ -161,7 +164,7 @@ internal abstract class WpComicsParser(
|
||||
publicUrl = absUrl,
|
||||
rating = RATING_UNKNOWN,
|
||||
isNsfw = false,
|
||||
coverUrl = item.selectFirst("div.image a img")?.absUrl("data-original").orEmpty(),
|
||||
coverUrl = item.selectFirst("div.image a img")?.src(coverSrcAttrs).orEmpty(),
|
||||
largeCoverUrl = null,
|
||||
tags = mangaTags,
|
||||
state = mangaState,
|
||||
|
||||
@@ -98,7 +98,7 @@ internal class DocTruyen3Q(context: MangaLoaderContext) :
|
||||
id = generateUid(href),
|
||||
url = href,
|
||||
publicUrl = href.toAbsoluteUrl(div.host ?: domain),
|
||||
coverUrl = div.selectFirst("div.image-item img")?.src().orEmpty(),
|
||||
coverUrl = div.selectFirst("div.image-item img")?.src(coverSrcAttrs).orEmpty(),
|
||||
title = div.selectFirst("h3 a")?.text().orEmpty(),
|
||||
altTitle = null,
|
||||
rating = RATING_UNKNOWN,
|
||||
|
||||
Reference in New Issue
Block a user