Temporary fix for empty filter list in MangaDex. (#14046)
This commit is contained in:
parent
77fa13f023
commit
c3a716a2b4
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangaDexFactory'
|
||||
extVersionCode = 172
|
||||
extVersionCode = 173
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -251,7 +251,11 @@ abstract class MangaDex(final override val lang: String, private val dexLang: St
|
|||
}
|
||||
}
|
||||
|
||||
val finalUrl = helper.mdFilters.addFiltersToUrl(tempUrl, filters, dexLang)
|
||||
val finalUrl = helper.mdFilters.addFiltersToUrl(
|
||||
url = tempUrl,
|
||||
filters = filters.ifEmpty { getFilterList() },
|
||||
dexLang = dexLang
|
||||
)
|
||||
|
||||
return GET(finalUrl, headers, CacheControl.FORCE_NETWORK)
|
||||
}
|
||||
|
@ -408,7 +412,7 @@ abstract class MangaDex(final override val lang: String, private val dexLang: St
|
|||
* @see CoverListDto
|
||||
*/
|
||||
private fun fetchFirstVolumeCovers(mangaList: List<MangaDataDto>): Map<String, String>? {
|
||||
if (!preferences.tryUsingFirstVolumeCover) {
|
||||
if (!preferences.tryUsingFirstVolumeCover || mangaList.isEmpty()) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue