From 48905556680eaa64d428a29e00c3c42c6bebc1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 19 Dec 2021 10:59:02 +0100 Subject: [PATCH] rssVideos: Can toggle seen/unseen video state --- config/scripts/rssVideos | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/scripts/rssVideos b/config/scripts/rssVideos index ad5943f..03495b9 100755 --- a/config/scripts/rssVideos +++ b/config/scripts/rssVideos @@ -476,7 +476,7 @@ def get_args() -> configargparse.Namespace: parser.add( "action", nargs="?", - choices=("download", "list", "watch", "binge", "clean"), + choices=("download", "list", "watch", "binge", "clean", "seen", "unseen"), default="download", ) @@ -522,6 +522,10 @@ def main() -> None: print(element) elif args.action in ("watch", "binge"): element.watch() + elif args.action == "seen": + element.watched = True + elif args.action == "unseen": + element.watched = False if args.action == "watch": break database.attempt_clean()