Add isTagsExclusionSupported flag

This commit is contained in:
2023-12-31 09:51:09 +02:00
parent 2d7c120d19
commit 69332a85da
2 changed files with 7 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ abstract class MangaParser @InternalParsersApi constructor(
*/
open val isMultipleTagsSupported: Boolean = true
/**
* Whether parser supports tagsExclude field in filter
*/
open val isTagsExclusionSupported: Boolean = false
@Deprecated(
message = "Use availableSortOrders instead",
replaceWith = ReplaceWith("availableSortOrders"),

View File

@@ -32,6 +32,8 @@ internal class BentomangaParser(context: MangaLoaderContext) : PagedMangaParser(
override val availableStates: Set<MangaState> =
EnumSet.of(MangaState.ONGOING, MangaState.FINISHED, MangaState.PAUSED, MangaState.ABANDONED)
override val isTagsExclusionSupported = true
init {
paginator.firstPage = 0
searchPaginator.firstPage = 0