MangaDex: Turned off including Upcoming Future Updates in the Latest feed (#9048)

* Turned off including Future Updates

* fixed tags not showing up in MangaDex
This commit is contained in:
loocool2 2021-09-13 08:20:51 -07:00 committed by GitHub
parent fb87b363e6
commit 62af1c06ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory'
extVersionCode = 135
extVersionCode = 136
containsNsfw = true
}

View File

@ -196,6 +196,7 @@ abstract class MangaDex(override val lang: String, val dexLang: String) :
addQueryParameter("limit", MDConstants.latestChapterLimit.toString())
addQueryParameter("translatedLanguage[]", dexLang)
addQueryParameter("order[publishAt]", "desc")
addQueryParameter("includeFutureUpdates", "0")
if (preferences.getBoolean(MDConstants.getOriginalLanguageJapanesePref(dexLang), false)) {
addQueryParameter("originalLanguage[]", "ja")
}

View File

@ -221,7 +221,7 @@ class MangaDexHelper() {
// map ids to tag names
val genreList = (
attr.tags
.map { mangaDataDto.id }
.map { it.id }
.map { dexId ->
tags.firstOrNull { it.id == dexId }
}