If no items are unwatched in the input range just exit.

This commit is contained in:
blacktwin 2022-12-01 11:22:27 -05:00
parent 76b2a7274a
commit e065626cdd

View File

@ -726,7 +726,9 @@ if __name__ == '__main__':
for _library in libraries:
print("Checking library: '{}' watch statuses...".format(_library.title))
unwatched_lst += unwatched_work(sectionID=_library.key, date=date)
if not unwatched_lst:
print("{} item(s) have been found.".format(len(unwatched_lst)))
exit()
if opts.action == "show":
action_show(unwatched_lst, opts.select, date_format)