Skip to content

Commit

Permalink
Fixed getting description for wma file with standard WMA attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kiefermat committed Oct 28, 2014
1 parent b02da5e commit 610942b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion beets/mediafile.py
Expand Up @@ -1488,7 +1488,7 @@ def update(self, dict):
StorageStyle('DESCRIPTION'),
StorageStyle('COMMENT'),
ASFStorageStyle('WM/Comments'),
StorageStyle('Description')
ASFStorageStyle('Description')
)
bpm = MediaField(
MP3StorageStyle('TBPM'),
Expand Down
Binary file added test/rsrc/pure.wma
Binary file not shown.
6 changes: 6 additions & 0 deletions test/test_mediafile.py
Expand Up @@ -770,6 +770,12 @@ def test_write_genre_list_get_first(self):
mediafile = MediaFile(mediafile.path)
self.assertIn(mediafile.genre, [u'one', u'two'])

def test_read_pure_tags(self):
mediafile = self._mediafile_fixture('pure')
self.assertEqual(mediafile.comments, 'the comments')
self.assertEqual(mediafile.title, 'the title')
self.assertEqual(mediafile.artist, 'the artist')


class OggTest(ReadWriteTestBase, ExtendedImageStructureTestMixin,
unittest.TestCase):
Expand Down

0 comments on commit 610942b

Please sign in to comment.