looks like this does not allways happen
This commit is contained in:
parent
f26f5de666
commit
037bd575bf
1 changed files with 2 additions and 1 deletions
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue