From 5883ee0b76b4d33c623caba915bf800b79bc3aeb Mon Sep 17 00:00:00 2001 From: Alberto Leal Date: Sun, 16 Nov 2014 16:11:25 -0500 Subject: [PATCH] Default value for link title for page searches. Google API may not return results with a title attribute. --- beetsplug/lyrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 5eb46f9a2..05fb341e9 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -393,7 +393,7 @@ def fetch_google(artist, title): if 'items' in data.keys(): for item in data['items']: urlLink = item['link'] - urlTitle = item['title'] + urlTitle = item.get('title', u'') if not is_page_candidate(urlLink, urlTitle, title, artist): continue