mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-13 10:47:19 +03:00
Fix index of songs in downloaded playlist
This commit is contained in:
parent
6bd4c0f6bf
commit
bed2f017af
@ -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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user