diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-04-21 13:48:02 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-04-21 13:48:02 +0800 |
commit | 0954cd8aa4421b1844a30e99702c364f1fffc15f (patch) | |
tree | bc06dd2ac3bac151782a63718234bfc661b06d0d /youtube_dl/extractor/bliptv.py | |
parent | da55dac047d63d48fd12247369b2fb858c4210ef (diff) |
[Cinemassacre] Add detection for videos from blip.tv
Diffstat (limited to 'youtube_dl/extractor/bliptv.py')
-rw-r--r-- | youtube_dl/extractor/bliptv.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/extractor/bliptv.py b/youtube_dl/extractor/bliptv.py index b632ce967..fb56cd78d 100644 --- a/youtube_dl/extractor/bliptv.py +++ b/youtube_dl/extractor/bliptv.py @@ -102,6 +102,15 @@ class BlipTVIE(InfoExtractor): }, ] + @staticmethod + def _extract_url(webpage): + mobj = re.search(r'<meta\s[^>]*https?://api\.blip\.tv/\w+/redirect/\w+/(\d+)', webpage) + if mobj: + return 'http://blip.tv/a/a-' + mobj.group(1) + mobj = re.search(r'<(?:iframe|embed|object)\s[^>]*(https?://(?:\w+\.)?blip\.tv/(?:play/|api\.swf#)[a-zA-Z0-9_]+)', webpage) + if mobj: + return mobj.group(1) + def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) lookup_id = mobj.group('lookup_id') |