mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 16:02:53 +01:00
Merge pull request #2623 from autrimpo/r128-#2615
fixes issue #2615 - wrong r128 tag being accessed
This commit is contained in:
commit
774fa62969
1 changed files with 3 additions and 3 deletions
|
|
@ -855,7 +855,7 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
# 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)
|
||||
|
|
@ -903,11 +903,11 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
|
||||
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()]):
|
||||
|
|
|
|||
Loading…
Reference in a new issue