Skip to content

Commit

Permalink
Fix missing extensions in Share downloads.
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Mar 21, 2023
1 parent 6fee744 commit 16fc4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/archiver.go
Expand Up @@ -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)
Expand Down

0 comments on commit 16fc4eb

Please sign in to comment.