Don't refresh smart playlists when generating covers

This commit is contained in:
Deluan
2023-01-01 20:28:03 -05:00
parent 950cc28e67
commit df0f140f9f
9 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ func handleExportPlaylist(ds model.DataStore) http.HandlerFunc {
ctx := r.Context()
plsRepo := ds.Playlist(ctx)
plsId := chi.URLParam(r, "playlistId")
pls, err := plsRepo.GetWithTracks(plsId)
pls, err := plsRepo.GetWithTracks(plsId, true)
if errors.Is(err, model.ErrNotFound) {
log.Warn(r.Context(), "Playlist not found", "playlistId", plsId)
http.Error(w, "not found", http.StatusNotFound)