Skip to content

Commit

Permalink
Merge branch 'master' of github.com:beetbox/mediafile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Fischer committed Jan 6, 2020
2 parents 3a99413 + 384784c commit 75ad2c6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ Internals
Changelog
---------

v0.4.0
''''''

- Added a ``barcode`` field.

v0.3.0
''''''

Expand Down
6 changes: 6 additions & 0 deletions mediafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
Expand Down
1 change: 1 addition & 0 deletions test/test_mediafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ class ReadWriteTestBase(ArtTestMixin, GenreListTestMixin,
'mb_releasegroupid',
'asin',
'catalognum',
'barcode',
'disctitle',
'script',
'language',
Expand Down

0 comments on commit 75ad2c6

Please sign in to comment.