diff --git a/format_parser.gemspec b/format_parser.gemspec index 3100f07a..4d2f95d2 100644 --- a/format_parser.gemspec +++ b/format_parser.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'ks', '~> 0.0.1' spec.add_dependency 'exifr', '~> 1.0' - spec.add_dependency 'id3tag', '~> 0.10' + spec.add_dependency 'id3tag', '~> 0.10', '>= 0.10.1' spec.add_dependency 'faraday', '~> 0.13' spec.add_development_dependency 'rspec', '~> 3.0' diff --git a/lib/parsers/mp3_parser.rb b/lib/parsers/mp3_parser.rb index 418924b6..66634b47 100644 --- a/lib/parsers/mp3_parser.rb +++ b/lib/parsers/mp3_parser.rb @@ -43,10 +43,7 @@ def self.new(wrapped) def to_h tag = __getobj__ MEMBERS.each_with_object({}) do |k, h| - # ID3Tag sometimes raises when trying to find an unknown genre. - # If this guard is removed, it fails when trying to do a gsub on a nil, - # in /lib/id3tag/frames/v2/genre_frame/genre_parser_pre_24.rb:25:in `just_genres' - value = tag.public_send(k) rescue nil + value = tag.public_send(k) h[k] = value if value end end