Song folders must have a metadata.json file
This commit is contained in:
parent
257fcc98fa
commit
6146dd9311
|
@ -122,7 +122,7 @@ def load_songs(root_folder, generate=True, regenerate=False, karaoke_template_fi
|
||||||
for entry in root_folder.iterdir():
|
for entry in root_folder.iterdir():
|
||||||
if entry.name in ['static', 'playlist', 'home', 'todo']:
|
if entry.name in ['static', 'playlist', 'home', 'todo']:
|
||||||
continue
|
continue
|
||||||
if entry.is_dir():
|
if entry.is_dir() and (entry / 'metadata.json').exists():
|
||||||
logger.info("building {}".format(entry.name))
|
logger.info("building {}".format(entry.name))
|
||||||
try:
|
try:
|
||||||
song = Song(entry, root_folder)
|
song = Song(entry, root_folder)
|
||||||
|
|
Loading…
Reference in New Issue