Fixed erotica and porn not showing in latest (#9039)
This commit is contained in:
parent
ed01744a4a
commit
bc8b461ab7
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'MangaDex'
|
extName = 'MangaDex'
|
||||||
pkgNameSuffix = 'all.mangadex'
|
pkgNameSuffix = 'all.mangadex'
|
||||||
extClass = '.MangaDexFactory'
|
extClass = '.MangaDexFactory'
|
||||||
extVersionCode = 133
|
extVersionCode = 134
|
||||||
containsNsfw = true
|
containsNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -207,6 +207,18 @@ abstract class MangaDex(override val lang: String, val dexLang: String) :
|
||||||
if (preferences.getBoolean(MDConstants.getOriginalLanguageKoreanPref(dexLang), false)) {
|
if (preferences.getBoolean(MDConstants.getOriginalLanguageKoreanPref(dexLang), false)) {
|
||||||
addQueryParameter("originalLanguage[]", "ko")
|
addQueryParameter("originalLanguage[]", "ko")
|
||||||
}
|
}
|
||||||
|
if (preferences.getBoolean(MDConstants.getContentRatingSafePrefKey(dexLang), true)) {
|
||||||
|
addQueryParameter("contentRating[]", "safe")
|
||||||
|
}
|
||||||
|
if (preferences.getBoolean(MDConstants.getContentRatingSuggestivePrefKey(dexLang), true)) {
|
||||||
|
addQueryParameter("contentRating[]", "suggestive")
|
||||||
|
}
|
||||||
|
if (preferences.getBoolean(MDConstants.getContentRatingEroticaPrefKey(dexLang), false)) {
|
||||||
|
addQueryParameter("contentRating[]", "erotica")
|
||||||
|
}
|
||||||
|
if (preferences.getBoolean(MDConstants.getContentRatingPornographicPrefKey(dexLang), false)) {
|
||||||
|
addQueryParameter("contentRating[]", "pornographic")
|
||||||
|
}
|
||||||
}.build().toString()
|
}.build().toString()
|
||||||
return GET(url, headers, CacheControl.FORCE_NETWORK)
|
return GET(url, headers, CacheControl.FORCE_NETWORK)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue