Ignore directories for replace_files

This commit is contained in:
Keith Edmunds 2022-11-10 10:11:20 +00:00
parent 9af20c29d3
commit 04f1fba581

View File

@ -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']