diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-04-12 17:15:16 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-04-12 17:15:16 +0200 |
commit | 66398056f17d0a9c04861a98b6e95d70ab08a353 (patch) | |
tree | f1abed179de44ba7ff2570946fed14a34a5800ab /youtube_dl/extractor/brightcove.py | |
parent | b9c76aa1a9c80013ad4f2f3cd20b98ab1be430ac (diff) | |
parent | 77477fa4c916599e7eaa236a3f3eb5703923cf91 (diff) |
Merge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'youtube_dl/extractor/brightcove.py')
-rw-r--r-- | youtube_dl/extractor/brightcove.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index 339d60ff0..3c02c297a 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -140,7 +140,11 @@ class BrightcoveIE(InfoExtractor): url_m = re.search(r'<meta\s+property="og:video"\s+content="(http://c.brightcove.com/[^"]+)"', webpage) if url_m: - return [unescapeHTML(url_m.group(1))] + url = unescapeHTML(url_m.group(1)) + # Some sites don't add it, we can't download with this url, for example: + # http://www.ktvu.com/videos/news/raw-video-caltrain-releases-video-of-man-almost/vCTZdY/ + if 'playerKey' in url: + return [url] matches = re.findall( r'''(?sx)<object |