Filtered comikey chapters (#8888)

This commit is contained in:
loocool2 2021-08-30 05:04:16 -07:00 committed by GitHub
parent 7d67b98943
commit 465b6e05af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaDex' extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex' pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory' extClass = '.MangaDexFactory'
extVersionCode = 129 extVersionCode = 130
libVersion = '1.2' libVersion = '1.2'
containsNsfw = true containsNsfw = true
} }

View File

@ -351,7 +351,8 @@ abstract class MangaDex(override val lang: String, val dexLang: String) :
val now = Date().time val now = Date().time
return chapterListResults.map { helper.createChapter(it) } return chapterListResults.map { helper.createChapter(it) }
.filter { it.date_upload <= now && "MangaPlus" != it.scanlator } .filter { it.date_upload <= now && "MangaPlus" != it.scanlator
&& "Comikey" != it.scanlator}
} catch (e: Exception) { } catch (e: Exception) {
Log.e("MangaDex", "error parsing chapter list", e) Log.e("MangaDex", "error parsing chapter list", e)
throw(e) throw(e)