assume incoming play queue current is an ID

This commit is contained in:
sentriz
2020-06-30 20:19:13 +01:00
parent 05901180d0
commit 0581335622
3 changed files with 8 additions and 3 deletions

View File

@@ -224,6 +224,10 @@ type PlayQueue struct {
Items string
}
func (p *PlayQueue) CurrentSID() *specid.ID {
return &specid.ID{Type: specid.Track, Value: p.Current}
}
func (p *PlayQueue) GetItems() []int {
return splitInt(p.Items, ",")
}