From 5f33525f2455696a413fef10b676da4ee2708504 Mon Sep 17 00:00:00 2001 From: Fabrice Quenneville Date: Sat, 21 Nov 2020 16:42:34 -0500 Subject: [PATCH] Fixed issue when deleting list of video --- mediacurator/curator.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mediacurator/curator.py b/mediacurator/curator.py index a33cb63..0975a4c 100755 --- a/mediacurator/curator.py +++ b/mediacurator/curator.py @@ -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: