diff options
author | Unknown <blackjack4494@web.de> | 2020-09-02 20:25:25 +0200 |
---|---|---|
committer | Unknown <blackjack4494@web.de> | 2020-09-02 20:25:25 +0200 |
commit | cefecac12cd3c70f9c7a30992c60b05c2eb5d34e (patch) | |
tree | f7b8e3f8ca2f6e402c83a501f72c09854ae04887 /youtube_dl/extractor/sztvhu.py | |
parent | 9688f237163b6aa546fde00bb3fd1e3445dd4c31 (diff) | |
download | hypervideo-pre-cefecac12cd3c70f9c7a30992c60b05c2eb5d34e.tar.lz hypervideo-pre-cefecac12cd3c70f9c7a30992c60b05c2eb5d34e.tar.xz hypervideo-pre-cefecac12cd3c70f9c7a30992c60b05c2eb5d34e.zip |
[skip travis] renaming
to avoid using same folder when using pip install for example
Diffstat (limited to 'youtube_dl/extractor/sztvhu.py')
-rw-r--r-- | youtube_dl/extractor/sztvhu.py | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/youtube_dl/extractor/sztvhu.py b/youtube_dl/extractor/sztvhu.py deleted file mode 100644 index cfad33146..000000000 --- a/youtube_dl/extractor/sztvhu.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 -from __future__ import unicode_literals - -from .common import InfoExtractor - - -class SztvHuIE(InfoExtractor): - _VALID_URL = r'https?://(?:(?:www\.)?sztv\.hu|www\.tvszombathely\.hu)/(?:[^/]+)/.+-(?P<id>[0-9]+)' - _TEST = { - 'url': 'http://sztv.hu/hirek/cserkeszek-nepszerusitettek-a-kornyezettudatos-eletmodot-a-savaria-teren-20130909', - 'md5': 'a6df607b11fb07d0e9f2ad94613375cb', - 'info_dict': { - 'id': '20130909', - 'ext': 'mp4', - 'title': 'Cserkészek népszerűsítették a környezettudatos életmódot a Savaria téren', - 'description': 'A zöld nap játékos ismeretterjesztő programjait a Magyar Cserkész Szövetség szervezte, akik az ország nyolc városában adják át tudásukat az érdeklődőknek. A PET...', - }, - } - - def _real_extract(self, url): - video_id = self._match_id(url) - webpage = self._download_webpage(url, video_id) - video_file = self._search_regex( - r'file: "...:(.*?)",', webpage, 'video file') - title = self._html_search_regex( - r'<meta name="title" content="([^"]*?) - [^-]*? - [^-]*?"', - webpage, 'video title') - description = self._html_search_regex( - r'<meta name="description" content="([^"]*)"/>', - webpage, 'video description', fatal=False) - thumbnail = self._og_search_thumbnail(webpage) - - video_url = 'http://media.sztv.hu/vod/' + video_file - - return { - 'id': video_id, - 'url': video_url, - 'title': title, - 'description': description, - 'thumbnail': thumbnail, - } |