Fix zip comments in Share downloads.
This commit is contained in:
+1
-1
@@ -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 {
|
func createZipWriter(out io.Writer, format string, bitrate int) *zip.Writer {
|
||||||
z := zip.NewWriter(out)
|
z := zip.NewWriter(out)
|
||||||
comment := "Downloaded from Navidrome"
|
comment := "Downloaded from Navidrome"
|
||||||
if format != "raw" {
|
if format != "raw" && format != "" {
|
||||||
comment = fmt.Sprintf("%s, transcoded to %s %dbps", comment, format, bitrate)
|
comment = fmt.Sprintf("%s, transcoded to %s %dbps", comment, format, bitrate)
|
||||||
}
|
}
|
||||||
_ = z.SetComment(comment)
|
_ = z.SetComment(comment)
|
||||||
|
|||||||
Reference in New Issue
Block a user