rssVideos: Can toggle seen/unseen video state

prenix
Geoffrey Frogeye 2021-12-19 10:59:02 +01:00
parent f4c81e346a
commit 4890555668
Signed by: geoffrey
GPG Key ID: C72403E7F82E6AD8
1 changed files with 5 additions and 1 deletions

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