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(
"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()