Permalink
Browse files

Added ignore case to the metadata regex for title, artist, album, tra…

…ck and date as these are capitalised in .FLAC files
  • Loading branch information...
1 parent 6521924 commit d20a956e5ff09e60e0197c77195db825575d78b7 Mark Taylor committed Nov 25, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/metadata.js
View
@@ -53,11 +53,11 @@ exports = module.exports = function Metadata(inputfile) {
, video_bitrate = /bitrate: ([0-9]+) kb\/s/.exec(stderr) || none
, fps = /([0-9\.]+) (fps|tb\(r\))/.exec(stderr) || none
, container = /Input #0, ([a-zA-Z0-9]+),/.exec(stderr) || none
- , title = /(INAM|title)\s+:\s(.+)/.exec(stderr) || none
- , artist = /artist\s+:\s(.+)/.exec(stderr) || none
- , album = /album\s+:\s(.+)/.exec(stderr) || none
- , track = /track\s+:\s(.+)/.exec(stderr) || none
- , date = /date\s+:\s(.+)/.exec(stderr) || none
+ , title = /(INAM|title)\s+:\s(.+)/i.exec(stderr) || none
+ , artist = /artist\s+:\s(.+)/i.exec(stderr) || none
+ , album = /album\s+:\s(.+)/i.exec(stderr) || none
+ , track = /track\s+:\s(.+)/i.exec(stderr) || none
+ , date = /date\s+:\s(.+)/i.exec(stderr) || none
, video_stream = /Stream #([0-9\.]+)([a-z0-9\(\)\[\]]*)[:] Video/.exec(stderr) || none
, video_codec = /Video: ([\w]+)/.exec(stderr) || none
, duration = /Duration: (([0-9]+):([0-9]{2}):([0-9]{2}).([0-9]+))/.exec(stderr) || none

0 comments on commit d20a956

Please sign in to comment.