]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[brightcove] Unescape html entities from the 'og:video' url property (fixes #2360)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 10 Feb 2014 06:50:10 +0000 (07:50 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 10 Feb 2014 06:50:10 +0000 (07:50 +0100)
youtube_dl/extractor/brightcove.py

index 031fe385d906dd8f4a53f8440955d325e5b0add1..83eec84d3cd446b75854accd8dd8c2c754ba4349 100644 (file)
@@ -17,6 +17,7 @@ from ..utils import (
 
     ExtractorError,
     unsmuggle_url,
+    unescapeHTML,
 )
 
 
@@ -139,7 +140,7 @@ class BrightcoveIE(InfoExtractor):
 
         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