Sync track number after updating song

This commit is contained in:
An Phan 2016-03-28 20:16:03 +08:00
parent f43e72355c
commit b943965043

View file

@ -305,9 +305,10 @@ export default {
let originalAlbumId = originalSong.album.id;
let originalArtistId = originalSong.album.artist.id;
// First, we update the title and the lyrics
// First, we update the title, lyrics, and track #
originalSong.title = updatedSong.title;
originalSong.lyrics = updatedSong.lyrics;
originalSong.track = updatedSong.track;
if (updatedSong.album.id === originalAlbumId) { // case 1
// Nothing to do