🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Return absolute paths in Subsonic API responses
Deluan338cbacb796d
diff --git a/engine/common.go b/engine/common.goindex 73484249b..0754876f7 100644--- a/engine/common.go+++ b/engine/common.go@@ -2,7 +2,6 @@ package engineimport ("context"- "fmt""time""github.com/deluan/navidrome/consts"@@ -42,8 +41,6 @@ type Entry struct {PlayerId intPlayerName stringAlbumCount int-- AbsolutePath string}type Entries []Entry@@ -105,11 +102,7 @@ func FromMediaFile(mf *model.MediaFile) Entry {e.CoverArt = "al-" + mf.AlbumID}e.ContentType = mf.ContentType()- e.AbsolutePath = mf.Path- // Creates a "pseudo" Path, to avoid sending absolute paths to the client- if mf.Path != "" {- e.Path = fmt.Sprintf("%s/%s/%s.%s", realArtistName(mf), mf.Album, mf.Title, mf.Suffix)- }+ e.Path = mf.Pathe.DiscNumber = mf.DiscNumbere.Created = mf.CreatedAte.AlbumId = mf.AlbumID