about summary refs log tree commit homepage
path: root/lib/dtas/source/file.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-04 09:51:41 +0000
committerEric Wong <e@80x24.org>2016-01-04 09:51:41 +0000
commit83ab812ea560f5f327ea2df00f8f0292d96b1795 (patch)
treee24674b974fc184368a6f1bf8711b5ab98a3352e /lib/dtas/source/file.rb
parent176e3cf0d82e24b5f019a4ed0ac4f56f62edd5e6 (diff)
downloaddtas-83ab812ea560f5f327ea2df00f8f0292d96b1795.tar.gz
It is possible for a file to only have one of the ReplayGain
tags we need and not the previous-required REPLAYGAIN_TRACK_GAIN
tag.  So do not reject the entire series of tags if a file has
the one we want.
Diffstat (limited to 'lib/dtas/source/file.rb')
-rw-r--r--lib/dtas/source/file.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dtas/source/file.rb b/lib/dtas/source/file.rb
index 33ecc25..00b8f8e 100644
--- a/lib/dtas/source/file.rb
+++ b/lib/dtas/source/file.rb
@@ -92,9 +92,9 @@ module DTAS::Source::File # :nodoc:
     rv
   end
 
-  def replaygain
-    @rg ||= DTAS::ReplayGain.new(comments) ||
-            DTAS::ReplayGain.new(mp3gain_comments)
+  def replaygain(mode)
+    @rg ||= DTAS::ReplayGain.new(comments, mode) ||
+            DTAS::ReplayGain.new(mp3gain_comments, mode)
   end
 
   def to_source_cat