mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Add methods to Playlist model
Also, don't load genres for Playlists tracks (not necessary for now)
This commit is contained in:
parent
d200933b68
commit
c72add516a
7 changed files with 102 additions and 53 deletions
|
@ -59,7 +59,7 @@ func (a *archiver) ZipPlaylist(ctx context.Context, id string, out io.Writer) er
|
|||
log.Error(ctx, "Error loading mediafiles from playlist", "id", id, err)
|
||||
return err
|
||||
}
|
||||
return a.zipTracks(ctx, id, out, pls.Tracks, a.createPlaylistHeader)
|
||||
return a.zipTracks(ctx, id, out, pls.MediaFiles(), a.createPlaylistHeader)
|
||||
}
|
||||
|
||||
func (a *archiver) zipTracks(ctx context.Context, id string, out io.Writer, mfs model.MediaFiles, ch createHeader) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue