music-library-index
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -127,2 +127,6 @@ var removeDiacritics = require('diacritics').remove; | ||
if (!track.albumName) { | ||
// ignore album artist if there's no album | ||
track.albumArtistName = track.artistName; | ||
} | ||
track.albumArtistName = track.albumArtistName || ""; | ||
@@ -129,0 +133,0 @@ |
{ | ||
"name": "music-library-index", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "build a searchable javascript object model given track metadata objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -345,1 +345,27 @@ var assert = require('assert'); | ||
}); | ||
describe("album artist with no album", function() { | ||
var library = new MusicLibraryIndex(); | ||
var id = '5a89ea73-71aa-4c22-97a5-3b3509131cca'; | ||
library.addTrack({ | ||
key: id, | ||
name: 'I Miss You', | ||
artistName: 'Blink 182', | ||
composerName: '', | ||
performerName: '', | ||
albumArtistName: 'blink-182', | ||
albumName: '', | ||
compilation: false, | ||
track: 3, | ||
duration: 227.6815, | ||
year: 2003, | ||
genre: 'Rock', | ||
}); | ||
library.rebuild(); | ||
it("shouldn't be various artists", function() { | ||
assert.notStrictEqual(library.trackTable[id].albumArtistName, "Various Artists"); | ||
}); | ||
}); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
25698
623
1