diff --git a/beets/mediafile.py b/beets/mediafile.py index ce42621a8..a459e09d0 100644 --- a/beets/mediafile.py +++ b/beets/mediafile.py @@ -1340,8 +1340,9 @@ class MediaFile(object): raise FileTypeError(path) elif (type(self.mgfile).__name__ == 'M4A' or type(self.mgfile).__name__ == 'MP4'): - if hasattr(self.mgfile.info, 'codec'): - if self.mgfile.codec and self.mgfile.codec.startswith('alac'): + info = self.mgfile.info + if hasattr(info, 'codec'): + if info.codec and info.codec.startswith('alac'): self.type = 'alac' else: self.type = 'aac' diff --git a/docs/changelog.rst b/docs/changelog.rst index 7c1366f27..be5beab9d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,9 +4,15 @@ Changelog 1.3.10 (in development) ----------------------- +New: + * A new :doc:`/plugins/permissions` makes it easy to fix permissions on music files as they are imported. Thanks to :user:`xsteadfastx`. :bug:`1098` +Fixed: + +* Fix a new crash with the latest version of Mutagen (1.26). + 1.3.9 (November 17, 2014) -------------------------