Fix missing extensions in Share downloads.

See https://github.com/navidrome/navidrome/pull/2246#issuecomment-1476996397
This commit is contained in:
Deluan 2023-03-21 10:31:00 -04:00
parent 6fee744d99
commit 16fc4eb792
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (a *archiver) zipMediaFiles(ctx context.Context, id string, format string,
func (a *archiver) playlistFilename(mf model.MediaFile, format string, idx int) string {
ext := mf.Suffix
if format != "raw" {
if format != "" && format != "raw" {
ext = format
}
file := fmt.Sprintf("%02d - %s - %s.%s", idx+1, mf.Artist, mf.Title, ext)