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/footyroom.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/footyroom.py')
-rw-r--r-- | youtube_dl/extractor/footyroom.py | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/youtube_dl/extractor/footyroom.py b/youtube_dl/extractor/footyroom.py deleted file mode 100644 index 118325b6d..000000000 --- a/youtube_dl/extractor/footyroom.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 -from __future__ import unicode_literals - -from .common import InfoExtractor -from .streamable import StreamableIE - - -class FootyRoomIE(InfoExtractor): - _VALID_URL = r'https?://footyroom\.com/matches/(?P<id>\d+)' - _TESTS = [{ - 'url': 'http://footyroom.com/matches/79922154/hull-city-vs-chelsea/review', - 'info_dict': { - 'id': '79922154', - 'title': 'VIDEO Hull City 0 - 2 Chelsea', - }, - 'playlist_count': 2, - 'add_ie': [StreamableIE.ie_key()], - }, { - 'url': 'http://footyroom.com/matches/75817984/georgia-vs-germany/review', - 'info_dict': { - 'id': '75817984', - 'title': 'VIDEO Georgia 0 - 2 Germany', - }, - 'playlist_count': 1, - 'add_ie': ['Playwire'] - }] - - def _real_extract(self, url): - playlist_id = self._match_id(url) - - webpage = self._download_webpage(url, playlist_id) - - playlist = self._parse_json(self._search_regex( - r'DataStore\.media\s*=\s*([^;]+)', webpage, 'media data'), - playlist_id) - - playlist_title = self._og_search_title(webpage) - - entries = [] - for video in playlist: - payload = video.get('payload') - if not payload: - continue - playwire_url = self._html_search_regex( - r'data-config="([^"]+)"', payload, - 'playwire url', default=None) - if playwire_url: - entries.append(self.url_result(self._proto_relative_url( - playwire_url, 'http:'), 'Playwire')) - - streamable_url = StreamableIE._extract_url(payload) - if streamable_url: - entries.append(self.url_result( - streamable_url, StreamableIE.ie_key())) - - return self.playlist_result(entries, playlist_id, playlist_title) |