From 04f1fba581556eb3809703d4602ee894fcb6a927 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Thu, 10 Nov 2022 10:11:20 +0000 Subject: [PATCH] Ignore directories for replace_files --- app/replace_files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/replace_files.py b/app/replace_files.py index f5bd6c7..13e94e8 100755 --- a/app/replace_files.py +++ b/app/replace_files.py @@ -87,6 +87,8 @@ def main(): for new_fname in os.listdir(source_dir): new_path = os.path.join(source_dir, new_fname) + if not os.path.isfile(new_path): + continue new_tags = get_tags(new_path) new_title = new_tags['title'] new_artist = new_tags['artist']