diff --git a/docs/conf.py b/docs/conf.py index ad8521a..1b8a0f5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,8 +17,8 @@ copyright = '2016, the beets project' author = 'the beets project' -version = '0.3' -release = '0.3.0' +version = '0.4' +release = '0.4.0' pygments_style = 'sphinx' htmlhelp_basename = 'mediafiledoc' diff --git a/docs/index.rst b/docs/index.rst index 2b1dcab..4cb11c3 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -100,6 +100,11 @@ Internals Changelog --------- +v0.4.0 +'''''' + +- Added a ``barcode`` field. + v0.3.0 '''''' diff --git a/mediafile.py b/mediafile.py index 4ac373a..51f352a 100644 --- a/mediafile.py +++ b/mediafile.py @@ -1792,6 +1792,12 @@ def update(self, dict): StorageStyle('CATALOGNUMBER'), ASFStorageStyle('WM/CatalogNo'), ) + barcode = MediaField( + MP3DescStorageStyle(u'BARCODE'), + MP4StorageStyle('----:com.apple.iTunes:BARCODE'), + StorageStyle('BARCODE'), + ASFStorageStyle('WM/Barcode'), + ) disctitle = MediaField( MP3StorageStyle('TSST'), MP4StorageStyle('----:com.apple.iTunes:DISCSUBTITLE'), diff --git a/setup.py b/setup.py index 1ec4f9b..90e3aa6 100755 --- a/setup.py +++ b/setup.py @@ -84,7 +84,7 @@ def _read(filename): setup( name='mediafile', - version='0.3.0', + version='0.4.0', description='low-level audio tag interface', author='Adrian Sampson', author_email='adrian@radbox.org', diff --git a/test/test_mediafile.py b/test/test_mediafile.py index a961784..e9e1850 100644 --- a/test/test_mediafile.py +++ b/test/test_mediafile.py @@ -388,6 +388,7 @@ class ReadWriteTestBase(ArtTestMixin, GenreListTestMixin, 'mb_releasegroupid', 'asin', 'catalognum', + 'barcode', 'disctitle', 'script', 'language',