streamer sound uri/path

This commit is contained in:
bkfox
2022-03-26 16:23:46 +01:00
parent 66f02bdb05
commit fb665aff5d
7 changed files with 32 additions and 9 deletions

View File

@ -84,6 +84,7 @@ class SoundFile:
# FIXME: sound.program as not null
if not program:
program = Program.get_from_path(self.path)
logger.info('program from path "%s" -> %s', self.path, program)
kwargs['program_id'] = program.pk
sound, created = Sound.objects.get_or_create(file=self.sound_path, defaults=kwargs) \