mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 20:43:41 +01:00
acousticbrainz: Log an error for missing data
This commit is contained in:
parent
3a3dc8b3ae
commit
aad2cf1feb
1 changed files with 5 additions and 0 deletions
|
|
@ -58,6 +58,11 @@ def fetch_info(log, items):
|
|||
log.info('request error: {}', exc)
|
||||
continue
|
||||
|
||||
# Check for missing tracks.
|
||||
if rs.status_code == 404:
|
||||
log.info('recording ID {} not found', item.mb_trackid)
|
||||
continue
|
||||
|
||||
# Parse the JSON response.
|
||||
try:
|
||||
data = rs.json()
|
||||
|
|
|
|||
Loading…
Reference in a new issue