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'
|
extName = 'MangaDex'
|
||||||
pkgNameSuffix = 'all.mangadex'
|
pkgNameSuffix = 'all.mangadex'
|
||||||
extClass = '.MangaDexFactory'
|
extClass = '.MangaDexFactory'
|
||||||
extVersionCode = 172
|
extVersionCode = 173
|
||||||
isNsfw = true
|
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)
|
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
|
* @see CoverListDto
|
||||||
*/
|
*/
|
||||||
private fun fetchFirstVolumeCovers(mangaList: List<MangaDataDto>): Map<String, String>? {
|
private fun fetchFirstVolumeCovers(mangaList: List<MangaDataDto>): Map<String, String>? {
|
||||||
if (!preferences.tryUsingFirstVolumeCover) {
|
if (!preferences.tryUsingFirstVolumeCover || mangaList.isEmpty()) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue