From bed2f017af9c7b013ef524e39d9a338e62f698c9 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 12 Jun 2021 23:02:34 -0400 Subject: [PATCH] Fix index of songs in downloaded playlist --- core/archiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/archiver.go b/core/archiver.go index bd0798488..1a857b173 100644 --- a/core/archiver.go +++ b/core/archiver.go @@ -83,7 +83,7 @@ func (a *archiver) createHeader(idx int, mf model.MediaFile) *zip.FileHeader { func (a *archiver) createPlaylistHeader(idx int, mf model.MediaFile) *zip.FileHeader { _, file := filepath.Split(mf.Path) return &zip.FileHeader{ - Name: fmt.Sprintf("%d - %s-%s", idx, mf.AlbumArtist, file), + Name: fmt.Sprintf("%d - %s - %s", idx+1, mf.AlbumArtist, file), Modified: mf.UpdatedAt, Method: zip.Store, }