mediafile: Add note about MPEGInfo.channels being available in newer mutagen versions

This commit is contained in:
Christoph Reiter 2016-06-27 08:41:34 +02:00
parent 9f16cfd078
commit 45404bce85

View file

@ -1960,6 +1960,7 @@ class MediaFile(object):
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,