csv playlists can have comments

This commit is contained in:
bkfox
2017-01-04 17:56:13 +01:00
parent 15c59024b4
commit 1ccaf7e0da
2 changed files with 18 additions and 18 deletions

View File

@ -280,6 +280,7 @@ class Command(BaseCommand):
logger.info('scan all programs...')
programs = Program.objects.filter()
dirs = []
for program in programs:
logger.info('#%d %s', program.id, program.name)
self.scan_for_program(
@ -290,6 +291,11 @@ class Command(BaseCommand):
program, settings.AIRCOX_SOUND_EXCERPTS_SUBDIR,
type = Sound.Type.excerpt,
)
dirs.append(os.path.join(program.path))
# extra scan for files that are not in programs' dir anymore
# TODO
def scan_for_program(self, program, subdir, **sound_kwargs):
"""