Volume control from the web interface.

This commit is contained in:
Jim Driessen
2017-01-30 16:39:25 +01:00
parent e0ac7cf4ce
commit a5c2331bcf
9 changed files with 97 additions and 6 deletions

View File

@ -63,6 +63,7 @@ class Queue(models.Model):
('can_skip', 'Can skip the currently playing song'),
('can_move', 'Can move all songs in the queue'),
('can_cancel', 'Can cancel all songs in the queue'),
('can_control_volume', 'Can control the volume of Marietje'),
)
name = models.TextField()
@ -138,5 +139,10 @@ class Queue(models.Model):
return self.name
class QueueCommand(models.Model):
queue = models.ForeignKey(
Queue,
on_delete=models.CASCADE,
)
command = models.TextField()
executed = models.BooleanField(default=False)