diff --git a/beets/__init__.py b/beets/__init__.py index 933b6afce..1e826d660 100644 --- a/beets/__init__.py +++ b/beets/__init__.py @@ -12,7 +12,7 @@ # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. -__version__ = '1.0rc1' +__version__ = '1.0rc2-dev' __author__ = 'Adrian Sampson ' import beets.library diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index 57299dca9..bf1681288 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -149,13 +149,17 @@ def _source_urls(album): necessary. """ if album.mb_albumid: - yield caa_art(album.mb_albumid) + url = caa_art(album.mb_albumid) + if url: + yield url # Amazon and AlbumArt.org. if album.asin: for url in art_for_asin(album.asin): yield url - yield aao_art(album.asin) + url = aao_art(album.asin) + if url: + yield url def art_for_album(album, path, maxwidth=None, local_only=False): """Given an Album object, returns a path to downloaded art for the diff --git a/docs/changelog.rst b/docs/changelog.rst index 53a62f9a6..cf5a9d59d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,12 @@ Changelog ========= +1.0rc2 (in development) +----------------------- + +* :doc:`/plugins/fetchart`: Fix a regression that caused crashes when art was + not available from some sources. + 1.0rc1 (December 17, 2012) -------------------------- diff --git a/docs/conf.py b/docs/conf.py index 63533a210..19e4a7336 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,7 @@ project = u'beets' copyright = u'2012, Adrian Sampson' version = '1.0' -release = '1.0rc1' +release = '1.0rc2-dev' pygments_style = 'sphinx' diff --git a/setup.py b/setup.py index f19636b9a..a44fa9377 100755 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ if 'sdist' in sys.argv: shutil.copytree(os.path.join(docdir, '_build', 'man'), mandir) setup(name='beets', - version='1.0rc1', + version='1.0rc2-dev', description='music tagger and library organizer', author='Adrian Sampson', author_email='adrian@radbox.org',