Commit d6128cf8 authored by Alan Szlosek's avatar Alan Szlosek

dont use song year in sort comparisons

parent e2fb8a65
......@@ -70,7 +70,8 @@ var addFolder = function(folder, callback) {
song.albumArtist = artistCorrections[song.albumArtist];
}
song.compare = song.albumArtist.toLowerCase() + '/' + song.year + '/' + song.album.toLowerCase() + '/' + song.discNumber + '/' + ("0000" + song.trackNumber).slice(-4);
// why was i using song year in the comparison ... why does that matter?
song.compare = song.albumArtist.toLowerCase() + '/' + song.album.toLowerCase() + '/' + song.discNumber + '/' + ("0000" + song.trackNumber).slice(-4);
songs.push( song );
next();
return;
......@@ -126,7 +127,7 @@ var addFolder = function(folder, callback) {
compare: ''
};
song.compare = song.albumArtist.toLowerCase() + '/' + song.year + '/' + song.album.toLowerCase() + '/' + song.discNumber + '/' + ("0000" + song.trackNumber).slice(-4);
song.compare = song.albumArtist.toLowerCase() + '/' + song.album.toLowerCase() + '/' + song.discNumber + '/' + ("0000" + song.trackNumber).slice(-4);
currentSongsCache[filename] = song;
songs.push( song );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment