Fixed decoding of title

develop
Sven Slootweg 13 years ago
parent 0754f110c4
commit 70517ee2d4

@ -48,7 +48,7 @@ def resolve(url):
video_file = matches.group(1)
try:
video_title = re.search('<a href="\/file\/[^"]+"[^>]*><strong>([^<]*)<\/strong><\/a>', page).group(1)
video_title = urllib.unquote(re.search('<a href="\/file\/[^"]+"[^>]*><strong>([^<]*)<\/strong><\/a>', page).group(1))
except:
raise ResolverError("Could not find the video title.")

@ -48,7 +48,7 @@ def resolve(url):
video_file = matches.group(1)
try:
video_title = re.search('<a href="\/file\/[^"]+"[^>]*><strong>([^<]*)<\/strong><\/a>', page).group(1)
video_title = urllib.unquote(re.search('<a href="\/file\/[^"]+"[^>]*><strong>([^<]*)<\/strong><\/a>', page).group(1))
except:
raise ResolverError("Could not find the video title.")

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

Loading…
Cancel
Save