WIP - Sound.file instead of Sound.path; fix issues with player; program.path is now relative

This commit is contained in:
bkfox
2022-03-18 14:12:59 +01:00
parent d17d6831dd
commit e3b744be70
17 changed files with 109 additions and 118 deletions

View File

@ -187,5 +187,5 @@ class QueueSourceViewSet(SourceViewSet):
sound = get_object_or_404(self.get_sound_queryset(),
pk=request.data['sound_id'])
return self._run(
pk, lambda s: s.push(sound.path) if sound.path else None)
pk, lambda s: s.push(sound.file.path) if sound.file.path else None)