summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-02-10 07:50:10 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-02-10 07:50:10 +0100
commitac6e4ca1ed7250ca914e907d2104372c23bf8834 (patch)
treee3a6547eca00e05673797935d6da14594414bce5
parent2e20bba7084ac953a97c16b4040cc185c033bed8 (diff)
downloadyoutube-dl-ac6e4ca1ed7250ca914e907d2104372c23bf8834.tar.gz
youtube-dl-ac6e4ca1ed7250ca914e907d2104372c23bf8834.tar.xz
youtube-dl-ac6e4ca1ed7250ca914e907d2104372c23bf8834.zip
[brightcove] Unescape html entities from the 'og:video' url property (fixes #2360)
-rw-r--r--youtube_dl/extractor/brightcove.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index 031fe385d..83eec84d3 100644
--- a/youtube_dl/extractor/brightcove.py
+++ b/youtube_dl/extractor/brightcove.py
@@ -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