Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #10 : 08, 09, etc being parsed as octal

  • Loading branch information...
commit 781ac3052c66209e9af391f11cfe74d97fa43f7e 1 parent 3967100
@bahamas10 bahamas10 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/musicmetadata.js
View
6 lib/musicmetadata.js
@@ -164,8 +164,8 @@ function cleanupArtist(origVal) {
//or 1 to no : 1, of : 0
function cleanupTrack(origVal) {
var split = origVal.toString().split('/');
- var number = parseInt(split[0]) || 0;
- var total = parseInt(split[1]) || 0;
+ var number = parseInt(split[0], 10) || 0;
+ var total = parseInt(split[1], 10) || 0;
return { no : number, of : total };
}
@@ -221,4 +221,4 @@ strtok.INT32SYNCSAFE = {
((buf[off + 1]) << 14) |
((buf[off]) << 21);
}
-};
+};
Please sign in to comment.
Something went wrong with that request. Please try again.