fix youtube id
This commit is contained in:
parent
f73e043d64
commit
50794cb741
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ def getInfoFromAtom(entry, video_url_base=None):
|
|||
if 'media_keywords' in entry:
|
||||
info['keywords'] = entry['media_keywords'].split(', ')
|
||||
info['url'] = entry['links'][0]['href']
|
||||
info['id'] = findString(info['url'], "/watch?v=")
|
||||
info['id'] = findRe(info['url'], r'\?v=(.*?)&')
|
||||
info['thumbnail'] = "http://img.youtube.com/vi/%s/0.jpg" % info['id']
|
||||
if video_url_base:
|
||||
info['flv'] = "%s/%s.%s" % (video_url_base, info['id'], 'flv')
|
||||
|
|
Loading…
Reference in a new issue