mirror of
https://github.com/beetbox/beets.git
synced 2026-02-20 22:31:38 +01:00
Merge pull request #3338 from beetbox/discogs-error
Use the 'resource_url' from discogs_client to not throw exception
This commit is contained in:
commit
e4b93de616
2 changed files with 7 additions and 2 deletions
|
|
@ -208,7 +208,8 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
getattr(result, 'title')
|
||||
except DiscogsAPIError as e:
|
||||
if e.status_code != 404:
|
||||
self._log.debug(u'API Error: {0} (query: {1})', e, result._uri)
|
||||
self._log.debug(u'API Error: {0} (query: {1})', e,
|
||||
result.data['resource_url'])
|
||||
if e.status_code == 401:
|
||||
self.reset_auth()
|
||||
return self.album_for_id(album_id)
|
||||
|
|
@ -260,7 +261,8 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
return year
|
||||
except DiscogsAPIError as e:
|
||||
if e.status_code != 404:
|
||||
self._log.debug(u'API Error: {0} (query: {1})', e, result._uri)
|
||||
self._log.debug(u'API Error: {0} (query: {1})', e,
|
||||
result.data['resource_url'])
|
||||
if e.status_code == 401:
|
||||
self.reset_auth()
|
||||
return self.get_master_year(master_id)
|
||||
|
|
|
|||
|
|
@ -79,6 +79,9 @@ Fixes:
|
|||
:bug:`3301`
|
||||
* :doc:`plugins/replaygain`: Fix the storage format in R128 gain tags.
|
||||
:bug:`3311` :bug:`3314`
|
||||
* :doc:`/plugins/discogs`: Fixed a crash that occurred when the Master URI
|
||||
isn't set
|
||||
:bug:`2965` :bug:`3239`
|
||||
|
||||
For plugin developers:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue