Default value for link title for page searches.

Google API may not return results with a title attribute.
This commit is contained in:
Alberto Leal 2014-11-16 16:11:25 -05:00
parent 590b106ed0
commit 5883ee0b76

View file

@ -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