Subsonic: album/song lists (getAlbumList/2, getRandomSongs, getSongsByGenre, getNowPlaying, getStarred/2) and search (search, search2, search3)
This commit is contained in:
@@ -14,6 +14,10 @@ import (
|
||||
// keeps XML and JSON output (and every endpoint that happens to return
|
||||
// the same entity type) semantically identical.
|
||||
|
||||
func secondsSince(t time.Time) float64 {
|
||||
return time.Since(t).Seconds()
|
||||
}
|
||||
|
||||
func isoTime(t time.Time) string {
|
||||
if t.IsZero() {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user