Fixed issue when deleting list of video

This commit is contained in:
Fabrice Quenneville 2020-11-21 16:42:34 -05:00
parent 8d6ef00ff5
commit 5f33525f24

View File

@ -71,7 +71,12 @@ def main():
# Actions
if sys.argv[1] == "list":
for filepath in medialibrary.videos:
# Pulling list of marked videos / original keys for the medialibrary.videos dictionary
keylist = [filepath for filepath in medialibrary.videos if medialibrary.videos[filepath].useful]
keylist.sort()
for filepath in keylist:
if medialibrary.videos[filepath].useful:
if "formated" in printop or "verbose" in printop:
if medialibrary.videos[filepath].error: