[brightcove] Unescape html entities from the 'og:video' url property (fixes #2360)

This commit is contained in:
Jaime Marquínez Ferrándiz 2014-02-10 07:50:10 +01:00
parent 2e20bba708
commit ac6e4ca1ed

View file

@ -17,6 +17,7 @@
ExtractorError,
unsmuggle_url,
unescapeHTML,
)
@ -139,7 +140,7 @@ def _extract_brightcove_urls(cls, webpage):
url_m = re.search(r'<meta\s+property="og:video"\s+content="(http://c.brightcove.com/[^"]+)"', webpage)
if url_m:
return [url_m.group(1)]
return [unescapeHTML(url_m.group(1))]
matches = re.findall(
r'''(?sx)<object