music-metadata
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -127,3 +127,3 @@ "use strict"; | ||
/* | ||
* Support for iTunes-style m4a tags | ||
* Support for Apple iTunes MP4 tags as found in a M4A/MP4 file | ||
* Ref: | ||
@@ -136,3 +136,5 @@ * http://developer.apple.com/mac/library/documentation/QuickTime/QTFF/Metadata/Metadata.html | ||
this.metaAtomsTotalLength = 0; | ||
this.format = {}; | ||
this.format = { | ||
headerType: "iTunes MP4" | ||
}; | ||
this.tags = []; | ||
@@ -180,3 +182,3 @@ this.warnings = []; // ToDo: make this part of the parsing result | ||
native: { | ||
m4a: _this.tags | ||
"iTunes MP4": _this.tags | ||
} | ||
@@ -183,0 +185,0 @@ }; |
@@ -113,3 +113,3 @@ /* jshint maxlen: 300 */ | ||
* @param comTags Target metadata to wrote common tags to | ||
* @param type Native headerType e.g.: 'm4a' | 'asf' | 'id3v1.1' | 'id3v2.4' | 'vorbis' | ||
* @param type Native headerType e.g.: 'iTunes MP4' | 'asf' | 'id3v1.1' | 'id3v2.4' | 'vorbis' | ||
* @param tag Native tag | ||
@@ -116,0 +116,0 @@ * @param value Native tag value |
@@ -17,3 +17,3 @@ "use strict"; | ||
'id3v2.4': TagMap.id3v2_3, | ||
m4a: TagMap.m4a, | ||
'iTunes MP4': TagMap.iTunes_MP4, | ||
vorbis: TagMap.vorbis | ||
@@ -48,3 +48,3 @@ }; | ||
* Test if native tag headerType is a singleton | ||
* @param type e.g.: 'm4a' | 'asf' | 'id3v1.1' | 'id3v2.4' | 'vorbis' | ||
* @param type e.g.: 'iTunes MP4' | 'asf' | 'id3v1.1' | 'id3v2.4' | 'vorbis' | ||
* @param tag Native tag name', e.g. 'TITLE' | ||
@@ -322,3 +322,10 @@ * @returns {boolean} true is we can safely assume that it is a singleton | ||
'TXXX:MusicBrainz Album Type': 'releasetype', | ||
/** | ||
* Release country as documented: https://picard.musicbrainz.org/docs/mappings/#cite_note-0 | ||
*/ | ||
'TXXX:MusicBrainz Album Release Country': 'releasecountry', | ||
/** | ||
* Release country as implemented // ToDo: report | ||
*/ | ||
'TXXX:RELEASECOUNTRY': 'releasecountry', | ||
'TXXX:SCRIPT': 'script', | ||
@@ -343,2 +350,3 @@ TLAN: 'language', | ||
'TXXX:MusicBrainz Disc Id': 'musicbrainz_discid', | ||
'TXXX:ACOUSTID_ID': 'acoustid_id', | ||
'TXXX:Acoustid Id': 'acoustid_id', | ||
@@ -500,6 +508,10 @@ 'TXXX:Acoustid Fingerprint': 'acoustid_fingerprint', | ||
}; | ||
TagMap.m4a = { | ||
TagMap.iTunes_MP4 = { | ||
'©nam': 'title', | ||
'©ART': 'artist', | ||
aART: 'albumartist', | ||
/** | ||
* ToDo: Album artist seems to be stored here while Picard documentation says: aART | ||
*/ | ||
'----:com.apple.iTunes:Band': 'albumartist', | ||
'©alb': 'album', | ||
@@ -565,3 +577,8 @@ '©day': 'date', | ||
// Additional mappings: | ||
gnre: 'genre' // ToDo: check mapping | ||
gnre: 'genre', | ||
'----:com.apple.iTunes:ALBUMARTISTSORT': 'albumartistsort', | ||
'----:com.apple.iTunes:ARTISTS': 'artists', | ||
'----:com.apple.iTunes:ORIGINALDATE': 'originaldate', | ||
'----:com.apple.iTunes:ORIGINALYEAR': 'originalyear' | ||
// '----:com.apple.iTunes:PERFORMER': 'performer' | ||
}; | ||
@@ -568,0 +585,0 @@ return TagMap; |
{ | ||
"name": "music-metadata", | ||
"description": "Streaming music metadata parser for node and the browser.", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"author": { | ||
@@ -40,4 +40,3 @@ "name": "Borewit", | ||
"files": [ | ||
"lib/", | ||
"dist/" | ||
"lib/" | ||
], | ||
@@ -44,0 +43,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
443187
3744
0