Skip to content

Commit

Permalink
fixes issue beetbox#2615
Browse files Browse the repository at this point in the history
  • Loading branch information
autrimpo committed Jul 4, 2017
1 parent 6185c6a commit 70a2ad3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beetsplug/replaygain.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def album_requires_gain(self, album):
# value.
return self.overwrite or \
any([self.should_use_r128(item) and
(not item.r128_item_gain or not item.r128_album_gain)
(not item.r128_track_gain or not item.r128_album_gain)
for item in album.items()]) or \
any([not self.should_use_r128(item) and
(not item.rg_album_gain or not item.rg_album_peak)
Expand Down Expand Up @@ -903,11 +903,11 @@ def handle_album(self, album, write):

self._log.info(u'analyzing {0}', album)

if (any([self.should_use_r128(item) for item in album.items()]) and
if (any([self.should_use_r128(item) for item in album.items()]) and not
all(([self.should_use_r128(item) for item in album.items()]))):
raise ReplayGainError(
u"Mix of ReplayGain and EBU R128 detected"
u"for some tracks in album {0}".format(album)
u" for some tracks in album {0}".format(album)
)

if any([self.should_use_r128(item) for item in album.items()]):
Expand Down

0 comments on commit 70a2ad3

Please sign in to comment.