Skip to content

Commit

Permalink
mediafile: Add note about MPEGInfo.channels being available in newer …
Browse files Browse the repository at this point in the history
…mutagen versions
  • Loading branch information
lazka committed Jun 28, 2016
1 parent 9f16cfd commit 45404bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beets/mediafile.py
Expand Up @@ -1960,6 +1960,7 @@ def bitdepth(self):
def channels(self):
"""The number of channels in the audio (an int)."""
if isinstance(self.mgfile.info, mutagen.mp3.MPEGInfo):
# FIXME: MPEGInfo.channels was added in mutagen 1.30
return {
mutagen.mp3.STEREO: 2,
mutagen.mp3.JOINTSTEREO: 2,
Expand Down

0 comments on commit 45404bc

Please sign in to comment.