Skip to content

🎧 Your Personal Streaming Service

Fix zip comments in Share downloads.

Deluan183b462fedce
diff --git a/core/archiver.go b/core/archiver.go
index f0b0f47e5..d2216b4e1 100644
--- a/core/archiver.go
+++ b/core/archiver.go
@@ -71,7 +71,7 @@ func (a *archiver) zipAlbums(ctx context.Context, id string, format string, bitr
func createZipWriter(out io.Writer, format string, bitrate int) *zip.Writer {
z := zip.NewWriter(out)
comment := "Downloaded from Navidrome"
- if format != "raw" {
+ if format != "raw" && format != "" {
comment = fmt.Sprintf("%s, transcoded to %s %dbps", comment, format, bitrate)
}
_ = z.SetComment(comment)