mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 16:34:45 +01:00
fix search/DB server disagreement crash (GC-418)
This commit is contained in:
parent
0cab7bd8de
commit
22836be22e
2 changed files with 4 additions and 2 deletions
|
|
@ -242,8 +242,8 @@ def match_album(artist, album, tracks=None, limit=SEARCH_LIMIT):
|
|||
# The search result is missing some data (namely, the tracks),
|
||||
# so we just use the ID and fetch the rest of the information.
|
||||
albuminfo = album_for_id(release['id'])
|
||||
assert albuminfo is not None
|
||||
yield albuminfo
|
||||
if albuminfo is not None:
|
||||
yield albuminfo
|
||||
|
||||
def match_track(artist, title, limit=SEARCH_LIMIT):
|
||||
"""Searches for a single track and returns an iterable of TrackInfo
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ Changelog
|
|||
* :doc:`/plugins/fetchart`: Fix a bug where cover art filenames could lack
|
||||
a ``.jpg`` extension.
|
||||
* Add the track mapping dictionary to the ``album_distance`` plugin function.
|
||||
* Fix an assertion failure when the MusicBrainz main database and search server
|
||||
disagree.
|
||||
|
||||
1.0b15 (July 26, 2012)
|
||||
----------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue