Update watch.py

master
Arjix 2022-01-29 02:54:28 -08:00 committed by GitHub
parent adab94cc7f
commit 4964463181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ def command(anime_name, new, update_all, _list, quality, remove,
util.print_info(__version__)
watcher = _watch.Watcher()
if not os.path.exists(watcher.WATCH_FILE):
with open(watcer.WATCH_FILE, "w") as f:
f.write("[]")
with open(watcher.WATCH_FILE, "r") as f:
contents = f.read()
# print(contents)