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(
|
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()
|
||||||
|
|
Loading…
Reference in a new issue