looks like this does not allways happen

This commit is contained in:
j 2008-12-09 19:04:36 +01:00
parent f26f5de666
commit 037bd575bf

View file

@ -47,7 +47,8 @@ def getInfoFromAtom(entry, video_url_base=None):
info['description'] = entry['description'] info['description'] = entry['description']
info['author'] = entry['author'] info['author'] = entry['author']
#info['published'] = entry['published_parsed'] #info['published'] = entry['published_parsed']
info['keywords'] = entry['media_keywords'].split(', ') if 'media_keywords' in entry:
info['keywords'] = entry['media_keywords'].split(', ')
info['url'] = entry['links'][0]['href'] info['url'] = entry['links'][0]['href']
info['id'] = findString(info['url'], "/watch?v=") info['id'] = findString(info['url'], "/watch?v=")
info['thumbnail'] = "http://img.youtube.com/vi/%s/0.jpg" % info['id'] info['thumbnail'] = "http://img.youtube.com/vi/%s/0.jpg" % info['id']