mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 16:34:45 +01:00
wrap filter()s in a list() in replaygain plugin
This commit is contained in:
parent
622945e2a9
commit
0f4b907ff5
1 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ class CommandBackend(Backend):
|
|||
"""Computes the track gain of the given tracks, returns a list
|
||||
of TrackGain objects.
|
||||
"""
|
||||
supported_items = filter(self.format_supported, items)
|
||||
supported_items = list(filter(self.format_supported, items))
|
||||
output = self.compute_gain(supported_items, False)
|
||||
return output
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ class CommandBackend(Backend):
|
|||
# TODO: What should be done when not all tracks in the album are
|
||||
# supported?
|
||||
|
||||
supported_items = filter(self.format_supported, album.items())
|
||||
supported_items = list(filter(self.format_supported, album.items()))
|
||||
if len(supported_items) != len(album.items()):
|
||||
self._log.debug(u'tracks are of unsupported format')
|
||||
return AlbumGain(None, [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue