Added title finding for YouTube resolver

develop
Sven Slootweg 13 years ago
parent 7594ed623f
commit 9821151d00

@ -68,4 +68,9 @@ def resolve(url):
stream_pool['video_%s_%s' % (video_quality, video_format)] = video_url
return stream_pool
try:
video_title = re.search('<meta property="og:title" content="([^"]*)">', contents).groups(1)
except:
raise ResolverError("Could not find the video title.")
return { 'title': video_title, 'urls': stream_pool }

Loading…
Cancel
Save