From 6146dd9311708cf9dd71276572434e3ec78753c9 Mon Sep 17 00:00:00 2001 From: shagi Date: Thu, 28 Jul 2022 17:49:15 +0200 Subject: [PATCH] Song folders must have a metadata.json file --- negromate/songs/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/negromate/songs/loader.py b/negromate/songs/loader.py index 6dbf19d..bb80daa 100644 --- a/negromate/songs/loader.py +++ b/negromate/songs/loader.py @@ -122,7 +122,7 @@ def load_songs(root_folder, generate=True, regenerate=False, karaoke_template_fi for entry in root_folder.iterdir(): if entry.name in ['static', 'playlist', 'home', 'todo']: continue - if entry.is_dir(): + if entry.is_dir() and (entry / 'metadata.json').exists(): logger.info("building {}".format(entry.name)) try: song = Song(entry, root_folder)