mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 23:43:31 +01:00
Fix #3533 - crash when calculating RG/R128 mix
This commit is contained in:
parent
99dbe93f85
commit
5143e630d8
2 changed files with 10 additions and 4 deletions
|
|
@ -1326,10 +1326,10 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
|
||||
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)
|
||||
)
|
||||
self._log.info(
|
||||
u"Cannot calculate gain for album {0} (incompatible formats)",
|
||||
album)
|
||||
return
|
||||
|
||||
tag_vals = self.tag_specific_values(album.items())
|
||||
store_track_gain, store_album_gain, target_level, peak = tag_vals
|
||||
|
|
|
|||
|
|
@ -185,6 +185,12 @@ Fixes:
|
|||
can help find matches when the artist name has special characters.
|
||||
Thanks to :user:`hashhar`.
|
||||
:bug:`3340` :bug:`3558`
|
||||
* :doc:`/plugins/replaygain`: Trying to calculate volume gain for an album
|
||||
consisting of some formats using ``ReplayGain`` and some using ``R128``
|
||||
will no longer crash; instead it is skipped and and a message is logged.
|
||||
The log message has also been rewritten for to improve clarity.
|
||||
Thanks to :user:`autrimpo`.
|
||||
:bug:`3533`
|
||||
|
||||
For plugin developers:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue