Song folders must have a metadata.json file

This commit is contained in:
Ales (Shagi) Zabala Alava 2022-07-28 17:49:15 +02:00
parent 257fcc98fa
commit 6146dd9311
1 changed files with 1 additions and 1 deletions

View File

@ -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)