Add ContentCreated, UseCount to MPRIS result
This commit is contained in:
committed by
Drew Weymouth
parent
9b2fee47f1
commit
f2e4805b29
@@ -3,6 +3,7 @@ package backend
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/dweymouth/supersonic/backend/mediaprovider"
|
||||
"github.com/dweymouth/supersonic/player"
|
||||
@@ -262,6 +263,8 @@ func (m *MPRISHandler) Metadata() (types.Metadata, error) {
|
||||
TrackNumber: tr.TrackNumber,
|
||||
Genre: []string{tr.Genre},
|
||||
UserRating: float64(tr.Rating) / 5,
|
||||
ContentCreated: strconv.Itoa(tr.Year),
|
||||
UseCount: tr.PlayCount,
|
||||
ArtUrl: artURL,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user