From 76cf205696a95e4e812936a6f5aa52f1fd5eb6fd Mon Sep 17 00:00:00 2001 From: Jordan Date: Sat, 15 Aug 2020 15:40:35 -0700 Subject: hash/process tracks in order; sorted os.listdir() --- rebuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebuild.py b/rebuild.py index 5f2e228..d9144ca 100755 --- a/rebuild.py +++ b/rebuild.py @@ -130,7 +130,7 @@ class Books: # hash of each supported track in directory path folder_hash = hashlib.md5() - for f in os.listdir(path): + for f in sorted(os.listdir(path)): # must be a file and have a supported extension file_path = os.path.join(path, f) if not os.path.isfile(file_path) or not f.split('.')[-1] in ext: -- cgit v1.2.3-54-g00ecf