watched filter split by channel and playlist

This commit is contained in:
Simon
2025-08-23 12:17:55 +07:00
parent ba44ab252e
commit a9264e348f
9 changed files with 48 additions and 12 deletions

View File

@@ -42,6 +42,8 @@ class UserMeConfigSerializer(serializers.Serializer):
)
grid_items = serializers.IntegerField(max_value=7, min_value=3)
hide_watched = serializers.BooleanField(allow_null=True)
hide_watched_channel = serializers.BooleanField(allow_null=True)
hide_watched_playlist = serializers.BooleanField(allow_null=True)
file_size_unit = serializers.ChoiceField(choices=["binary", "metric"])
show_ignored_only = serializers.BooleanField()
show_subed_only = serializers.BooleanField(allow_null=True)

View File

@@ -23,6 +23,8 @@ class UserConfigType(TypedDict, total=False):
vid_type_filter: str | None
grid_items: int
hide_watched: bool | None
hide_watched_channel: bool | None
hide_watched_playlist: bool | None
file_size_unit: str
show_ignored_only: bool
show_subed_only: bool | None
@@ -48,6 +50,8 @@ class UserConfig:
vid_type_filter=None,
grid_items=3,
hide_watched=False,
hide_watched_channel=None,
hide_watched_playlist=None,
file_size_unit="binary",
show_ignored_only=False,
show_subed_only=None,