diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-01-04 19:19:15 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-01-04 19:19:18 +0100 |
commit | 67c2bcdf4cf83f9ac32e5f1f50a8b4b38d2ac624 (patch) | |
tree | fbe2a8ec375de003381955eb1543bf949316100d /youtube_dl/extractor/videofun.py | |
parent | 1d2d0e3ff2b4e55810039caf267bb9ad086f3610 (diff) |
Remove extractors which infringe copyright (#4554)
Diffstat (limited to 'youtube_dl/extractor/videofun.py')
-rw-r--r-- | youtube_dl/extractor/videofun.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/youtube_dl/extractor/videofun.py b/youtube_dl/extractor/videofun.py deleted file mode 100644 index 0364b9d32..000000000 --- a/youtube_dl/extractor/videofun.py +++ /dev/null @@ -1,36 +0,0 @@ -from __future__ import unicode_literals - -from .common import InfoExtractor -from ..utils import ( - compat_urllib_parse -) - - -class VideoFunIE(InfoExtractor): - _VALID_URL = r'http://[w.]*videofun\.me/embed/(?P<id>[0-9a-f]+)' - - _TEST = { - 'url': 'http://videofun.me/embed/8267659be070860af600fee7deadbcdb?w=600&h=438', - 'md5': 'e37e99d665f503dd2db952f7c4dba9e6', - 'info_dict': { - 'id': 'Mahou-Shoujo-Madoka-Magica-07', - 'ext': 'flv', - 'title': 'Mahou-Shoujo-Madoka-Magica-07', - } - } - - def _real_extract(self, url): - video_id = self._match_id(url) - webpage = self._download_webpage( - url, video_id, 'Downloading video page') - - video_url_encoded = self._html_search_regex( - r'url: "(http://gateway\.videofun\.me[^"]+)"', webpage, 'video url') - video_url = compat_urllib_parse.unquote(video_url_encoded) - title = self._html_search_regex(r'.*/([^.]*)\.', video_url, 'title') - - return { - 'id': title, - 'url': video_url, - 'title': title, - } |