mirror of
https://github.com/beetbox/beets.git
synced 2025-12-19 07:04:51 +01:00
Add note about current approach of detecting aac vs alac
Signed-off-by: Simon Luijk <simon@simonluijk.com>
This commit is contained in:
parent
ffe65648d2
commit
79f56adb12
1 changed files with 2 additions and 0 deletions
|
|
@ -885,6 +885,8 @@ class MediaFile(object):
|
|||
raise FileTypeError('file type unsupported by Mutagen')
|
||||
elif type(self.mgfile).__name__ == 'M4A' or \
|
||||
type(self.mgfile).__name__ == 'MP4':
|
||||
# This hack differentiates aac and alac until we find a more
|
||||
# deterministic approach.
|
||||
if hasattr(self.mgfile.info, 'sample_rate') and \
|
||||
self.mgfile.info.sample_rate > 0:
|
||||
self.type = 'aac'
|
||||
|
|
|
|||
Loading…
Reference in a new issue