Fixed issue when deleting list of video
This commit is contained in:
parent
8d6ef00ff5
commit
5f33525f24
@ -71,7 +71,12 @@ def main():
|
|||||||
|
|
||||||
# Actions
|
# Actions
|
||||||
if sys.argv[1] == "list":
|
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 medialibrary.videos[filepath].useful:
|
||||||
if "formated" in printop or "verbose" in printop:
|
if "formated" in printop or "verbose" in printop:
|
||||||
if medialibrary.videos[filepath].error:
|
if medialibrary.videos[filepath].error:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user