Skip to content
This repository
Browse code

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
authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  lib/metadata.js
10  lib/metadata.js
@@ -53,11 +53,11 @@ exports = module.exports = function Metadata(inputfile) {
53 53
         , video_bitrate = /bitrate: ([0-9]+) kb\/s/.exec(stderr) || none
54 54
         , fps           = /([0-9\.]+) (fps|tb\(r\))/.exec(stderr) || none
55 55
         , container     = /Input #0, ([a-zA-Z0-9]+),/.exec(stderr) || none
56  
-        , title         = /(INAM|title)\s+:\s(.+)/.exec(stderr) || none
57  
-        , artist        = /artist\s+:\s(.+)/.exec(stderr) || none
58  
-        , album         = /album\s+:\s(.+)/.exec(stderr) || none
59  
-        , track         = /track\s+:\s(.+)/.exec(stderr) || none
60  
-        , date          = /date\s+:\s(.+)/.exec(stderr) || none
  56
+        , title         = /(INAM|title)\s+:\s(.+)/i.exec(stderr) || none
  57
+        , artist        = /artist\s+:\s(.+)/i.exec(stderr) || none
  58
+        , album         = /album\s+:\s(.+)/i.exec(stderr) || none
  59
+        , track         = /track\s+:\s(.+)/i.exec(stderr) || none
  60
+        , date          = /date\s+:\s(.+)/i.exec(stderr) || none
61 61
         , video_stream  = /Stream #([0-9\.]+)([a-z0-9\(\)\[\]]*)[:] Video/.exec(stderr) || none
62 62
         , video_codec   = /Video: ([\w]+)/.exec(stderr) || none
63 63
         , duration      = /Duration: (([0-9]+):([0-9]{2}):([0-9]{2}).([0-9]+))/.exec(stderr) || none

0 notes on commit d20a956

Please sign in to comment.
Something went wrong with that request. Please try again.