rssVideos: Can toggle seen/unseen video state

This commit is contained in:
Geoffrey Frogeye 2021-12-19 10:59:02 +01:00
parent f4c81e346a
commit 4890555668
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -476,7 +476,7 @@ def get_args() -> configargparse.Namespace:
parser.add( parser.add(
"action", "action",
nargs="?", nargs="?",
choices=("download", "list", "watch", "binge", "clean"), choices=("download", "list", "watch", "binge", "clean", "seen", "unseen"),
default="download", default="download",
) )
@ -522,6 +522,10 @@ def main() -> None:
print(element) print(element)
elif args.action in ("watch", "binge"): elif args.action in ("watch", "binge"):
element.watch() element.watch()
elif args.action == "seen":
element.watched = True
elif args.action == "unseen":
element.watched = False
if args.action == "watch": if args.action == "watch":
break break
database.attempt_clean() database.attempt_clean()