From 6fc54858de30663c703c979d94c4010fc4a76abc Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Sun, 3 Oct 2021 20:31:50 +0200 Subject: [PATCH] Files are processed in Order --- README.md | 1 + nicole/nicole.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e28acc..7f62ca4 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ After installing, you can use it like this: `nicole -ior -d ~/music/artist --rm_ ### 1.1 - Lyrics are now properly encoded. - If a title contains paranthesis or umlaute, multiple possible urls will be checked. +- Files are now processed in order ## Importand Notice This software comes with no warranty! diff --git a/nicole/nicole.py b/nicole/nicole.py index 865b506..d9427ff 100644 --- a/nicole/nicole.py +++ b/nicole/nicole.py @@ -205,7 +205,10 @@ class Nicole: print("\nProcessing directory: " + directory) - for entry in listdir(directory): + entries = listdir(directory) + entries.sort() + + for entry in entries: entry = path.normpath(directory + "/" + entry) if path.isfile(entry):