Skip to content
Snippets Groups Projects
Commit 58be3c8d authored by ale's avatar ale
Browse files

fix for upstream gompd changes

parent 41a986a2
Branches
No related tags found
No related merge requests found
......@@ -60,6 +60,13 @@ func (s *DJRandomSong) SampleRate() float64 {
return 44100
}
func (s *DJRandomSong) Duration() int {
if s.audiofile != nil {
return int(s.audiofile.Duration)
}
return 0
}
func (s *DJRandomSong) URL() string {
return fmt.Sprintf("djrandom://%s", s.Id.String())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment