Fix zip comments in Share downloads.

This commit is contained in:
Deluan 2023-03-21 10:34:04 -04:00
parent 16fc4eb792
commit 183b462fed
1 changed files with 1 additions and 1 deletions

View File

@ -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)