diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-18 19:19:43 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-18 19:19:43 +0600 |
commit | 6682049dee5e73b98e99e1359b959240d0920d6b (patch) | |
tree | c2730331d9a398c61418eda1844b1e2d48a1a21f /youtube_dl/extractor | |
parent | b0f001a6cbd220c8b10c0ce359f17072d6347a8f (diff) |
[canalc2] Improve rtmp extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/canalc2.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/canalc2.py b/youtube_dl/extractor/canalc2.py index 66a9ff093..648af2e18 100644 --- a/youtube_dl/extractor/canalc2.py +++ b/youtube_dl/extractor/canalc2.py @@ -31,10 +31,12 @@ class Canalc2IE(InfoExtractor): webpage, 'video_url') formats = [{'url': video_url}] if video_url.startswith('rtmp://'): - rtmp = re.search(r'^(?P<url>rtmp://[^/]+/(?P<app>.+))/(?P<play_path>mp4:.+)$', video_url) + rtmp = re.search(r'^(?P<url>rtmp://[^/]+/(?P<app>.+/))(?P<play_path>mp4:.+)$', video_url) formats[0].update({ + 'url': rtmp.group('url'), 'app': rtmp.group('app'), 'play_path': rtmp.group('play_path'), + 'page_url': url, }) title = self._html_search_regex( |