Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d20a956e5ff09e60e0197c77195db825575d78b7 1 parent 6521924
Mark Taylor authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/metadata.js
View
10 lib/metadata.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.