diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-12-30 00:32:23 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-12-30 00:32:23 +0700 |
commit | 6cf261d882ab296a170473b82737832720fba84a (patch) | |
tree | 0d85e6cf42c8fa51427cd1a25fd94e4ae73d1b05 /youtube_dl/extractor/freevideo.py | |
parent | df086e74e20e8de6f027c6c551887f5c22b8c637 (diff) |
[freevideo] Remove extractor (closes #11515)
Handled by generic extractor
Diffstat (limited to 'youtube_dl/extractor/freevideo.py')
-rw-r--r-- | youtube_dl/extractor/freevideo.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/youtube_dl/extractor/freevideo.py b/youtube_dl/extractor/freevideo.py deleted file mode 100644 index cd8423a6f..000000000 --- a/youtube_dl/extractor/freevideo.py +++ /dev/null @@ -1,38 +0,0 @@ -from __future__ import unicode_literals - -from .common import InfoExtractor -from ..utils import ExtractorError - - -class FreeVideoIE(InfoExtractor): - _VALID_URL = r'^https?://www.freevideo.cz/vase-videa/(?P<id>[^.]+)\.html(?:$|[?#])' - - _TEST = { - 'url': 'http://www.freevideo.cz/vase-videa/vysukany-zadecek-22033.html', - 'info_dict': { - 'id': 'vysukany-zadecek-22033', - 'ext': 'mp4', - 'title': 'vysukany-zadecek-22033', - 'age_limit': 18, - }, - 'skip': 'Blocked outside .cz', - } - - def _real_extract(self, url): - video_id = self._match_id(url) - webpage, handle = self._download_webpage_handle(url, video_id) - if '//www.czechav.com/' in handle.geturl(): - raise ExtractorError( - 'Access to freevideo is blocked from your location', - expected=True) - - video_url = self._search_regex( - r'\s+url: "(http://[a-z0-9-]+.cdn.freevideo.cz/stream/.*?/video.mp4)"', - webpage, 'video URL') - - return { - 'id': video_id, - 'url': video_url, - 'title': video_id, - 'age_limit': 18, - } |