diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-12-23 15:48:00 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-12-23 15:49:21 +0100 |
commit | 1538eff6d8ee73f2ae4ac1dd832a9ef978c63074 (patch) | |
tree | 92aafe41ebfb72668063c4f927f44361dd3a963f /youtube_dl/extractor/bliptv.py | |
parent | 00b2685b9ceecbeb5a5ea1cb7bd1ff2772e941de (diff) |
[bliptv] Remove support for direct downloads
This is now handled by the generic IE
Diffstat (limited to 'youtube_dl/extractor/bliptv.py')
-rw-r--r-- | youtube_dl/extractor/bliptv.py | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/youtube_dl/extractor/bliptv.py b/youtube_dl/extractor/bliptv.py index 0e63208df..a32891c17 100644 --- a/youtube_dl/extractor/bliptv.py +++ b/youtube_dl/extractor/bliptv.py @@ -21,7 +21,7 @@ from ..utils import ( class BlipTVIE(InfoExtractor): """Information extractor for blip.tv""" - _VALID_URL = r'^(?:https?://)?(?:\w+\.)?blip\.tv/((.+/)|(play/)|(api\.swf#))(.+)$' + _VALID_URL = r'^(?:https?://)?(?:www\.)?blip\.tv/((.+/)|(play/)|(api\.swf#))(.+)$' _URL_EXT = r'^.*\.([a-z0-9]+)$' IE_NAME = u'blip.tv' _TEST = { @@ -58,7 +58,6 @@ class BlipTVIE(InfoExtractor): url = 'http://blip.tv/a/a-' + file_id return self._real_extract(url) - if '?' in url: cchar = '&' else: @@ -71,22 +70,6 @@ class BlipTVIE(InfoExtractor): urlh = self._request_webpage(request, None, False, u'unable to download video info webpage') - if urlh.headers.get('Content-Type', '').startswith('video/'): # Direct download - basename = url.split('/')[-1] - title,ext = os.path.splitext(basename) - title = title.decode('UTF-8') - ext = ext.replace('.', '') - self.report_direct_download(title) - return { - 'id': title, - 'url': url, - 'uploader': None, - 'upload_date': None, - 'title': title, - 'ext': ext, - 'urlhandle': urlh - } - try: json_code_bytes = urlh.read() json_code = json_code_bytes.decode('utf-8') |