mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
subsonic: include subsonic_id as additional metadata
This commit is contained in:
parent
fee1eba080
commit
1aa7b61649
2 changed files with 11 additions and 7 deletions
|
@ -39,6 +39,7 @@ func TestFromConfig(t *testing.T) {
|
|||
func TestSongToLove(t *testing.T) {
|
||||
user := "outsidecontext"
|
||||
song := go_subsonic.Child{
|
||||
ID: "foo123",
|
||||
Starred: time.Unix(1699574369, 0),
|
||||
Title: "Oweynagat",
|
||||
Album: "Here Now, There Then",
|
||||
|
@ -59,4 +60,5 @@ func TestSongToLove(t *testing.T) {
|
|||
assert.Equal(song.Track, love.Track.TrackNumber)
|
||||
assert.Equal(song.DiscNumber, love.Track.DiscNumber)
|
||||
assert.Equal([]string{song.Genre}, love.Track.Tags)
|
||||
assert.Equal(song.ID, love.AdditionalInfo["subsonic_id"])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue