Fix index of songs in downloaded playlist
This commit is contained in:
+1
-1
@@ -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 {
|
func (a *archiver) createPlaylistHeader(idx int, mf model.MediaFile) *zip.FileHeader {
|
||||||
_, file := filepath.Split(mf.Path)
|
_, file := filepath.Split(mf.Path)
|
||||||
return &zip.FileHeader{
|
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,
|
Modified: mf.UpdatedAt,
|
||||||
Method: zip.Store,
|
Method: zip.Store,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user