youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 219da6bb685765186b7ffb878399c32f44351802
parent 0499cd866e7e746658f33e6c2f44f7e1e699ad1b
Author: Sergey M․ <dstftw@gmail.com>
Date:   Tue, 17 Mar 2015 21:13:42 +0600

[megavideoeu] Remove extractor

Diffstat:
Myoutube_dl/extractor/__init__.py | 1-
Dyoutube_dl/extractor/megavideozeu.py | 39---------------------------------------
2 files changed, 0 insertions(+), 40 deletions(-)

diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py @@ -267,7 +267,6 @@ from .macgamestore import MacGameStoreIE from .mailru import MailRuIE from .malemotion import MalemotionIE from .mdr import MDRIE -from .megavideozeu import MegavideozeuIE from .metacafe import MetacafeIE from .metacritic import MetacriticIE from .mgoon import MgoonIE diff --git a/youtube_dl/extractor/megavideozeu.py b/youtube_dl/extractor/megavideozeu.py @@ -1,39 +0,0 @@ -# encoding: utf-8 -from __future__ import unicode_literals - -from .common import InfoExtractor -from ..utils import ( - int_or_none, - parse_filesize, - unified_strdate, -) - - -class MegavideozeuIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?megavideoz\.eu/video/(?P<id>.*)(?:.*)' - - def _real_extract(self, url): - tmp_video_id = self._match_id(url) - - webpage = self._download_webpage(url, tmp_video_id) - - config_php = self._html_search_regex( - r'var cnf = \'([^\']+)\'', webpage, 'config.php url') - - configpage = self._download_webpage(config_php, tmp_video_id) - - video_id = self._html_search_regex( - r'<mediaid>([^<]+)', configpage, 'video id') - video_url = self._html_search_regex( - r'<file>([^<]+)', configpage, 'video URL') - title = self._html_search_regex( - r'<title><!\[CDATA\[([^\]]+)', configpage, 'title') - duration = int_or_none(self._html_search_regex( - r'<duration>([0-9]+)', configpage, 'duration', fatal=False)) - - return { - 'id': video_id, - 'url': video_url, - 'title': title, - 'duration': duration - }