Skip to content

🎧 Your Personal Streaming Service

Fix index of songs in downloaded playlist

Deluanbed2f017af9c
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,
}