musicmetadata
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -6,7 +6,4 @@ 'use strict'; | ||
module.exports = function (stream, callback, done, readDuration) { | ||
strtok.parse(stream, function (v, cb) { | ||
// we can stop processing atoms once we get to the end of the ilst atom | ||
if (cb.metaAtomsTotalLength >= cb.atomContainerLength - 8) { | ||
return done(); | ||
} | ||
@@ -66,2 +63,8 @@ // the very first thing we expect to see is the first atom's length | ||
} | ||
// we can stop processing atoms once we get to the end of the ilst atom | ||
if (cb.metaAtomsTotalLength >= cb.atomContainerLength - 8) { | ||
return done(); | ||
} | ||
cb.state = 0; | ||
@@ -68,0 +71,0 @@ return strtok.UINT32_BE; |
@@ -204,5 +204,6 @@ 'use strict'; | ||
var split = origVal.toString().split('/'); | ||
var number = parseInt(split[0], 10) || 0; | ||
var total = parseInt(split[1], 10) || 0; | ||
return { no: number, of: total } | ||
return { | ||
no: parseInt(split[0], 10) || 0, | ||
of: parseInt(split[1], 10) || 0 | ||
} | ||
} | ||
@@ -209,0 +210,0 @@ |
{ | ||
"name": "musicmetadata", | ||
"description": "Streaming music metadata parser for node and the browser.", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"author": "Lee Treveil", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
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
12287
598990