mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 01:25:47 +01:00
rgain: fix computation on singleton import
This commit is contained in:
parent
6208c453c6
commit
17842b8d0d
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
def item_imported(self, lib, item, config):
|
||||
try:
|
||||
mf = MediaFile(syspath(item.path))
|
||||
self.write_rgain(mf, self.compute_rgain(mf))
|
||||
self.write_rgain([mf], self.compute_rgain([mf]))
|
||||
except (FileTypeError, UnreadableFileError,
|
||||
TypeError, ValueError) as e:
|
||||
log.error("failed to calculate replaygain: %s ", e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue