rssVideos: Can toggle seen/unseen video state
This commit is contained in:
parent
f4c81e346a
commit
4890555668
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue