From aad2cf1feb193acb7d5001efce692e47a95eb8f4 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Thu, 31 Dec 2015 11:38:05 -0800 Subject: [PATCH] acousticbrainz: Log an error for missing data --- beetsplug/acousticbrainz.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/beetsplug/acousticbrainz.py b/beetsplug/acousticbrainz.py index e4557106b..934531a3c 100644 --- a/beetsplug/acousticbrainz.py +++ b/beetsplug/acousticbrainz.py @@ -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()