From 079162d4c5be7cb2aa4e6a73aeec32b44a9b3c9d Mon Sep 17 00:00:00 2001 From: snipem Date: Sun, 12 Apr 2015 11:23:01 +0200 Subject: [PATCH 1/2] [FootyRoom] Fixed missing http prefix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason FootyTube is missing the „http:“ prefix on some Playwire links for some videos --- youtube_dl/extractor/footyroom.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/footyroom.py b/youtube_dl/extractor/footyroom.py index 2b4691ae8..dc784db96 100644 --- a/youtube_dl/extractor/footyroom.py +++ b/youtube_dl/extractor/footyroom.py @@ -6,14 +6,25 @@ from .common import InfoExtractor class FootyRoomIE(InfoExtractor): _VALID_URL = r'http://footyroom\.com/(?P[^/]+)' - _TEST = { + _TESTS = [{ 'url': 'http://footyroom.com/schalke-04-0-2-real-madrid-2015-02/', + 'md5': 'f38d400d32f19724570040d5ce3a505f', 'info_dict': { 'id': 'schalke-04-0-2-real-madrid-2015-02', 'title': 'Schalke 04 0 – 2 Real Madrid', }, 'playlist_count': 3, - } + }, + { + 'url': 'http://footyroom.com/georgia-0-2-germany-2015-03/', + 'info_dict': { + 'id': 'georgia-0-2-germany-2015-03', + 'title': 'Georgia 0 – 2 Germany', + }, + 'playlist_count': 1, + }, + + ] def _real_extract(self, url): playlist_id = self._match_id(url) @@ -35,6 +46,8 @@ class FootyRoomIE(InfoExtractor): playwire_url = self._search_regex( r'data-config="([^"]+)"', payload, 'playwire url', default=None) + if not playwire_url.startswith("http:"): + playwire_url = "http:" + playwire_url if playwire_url: entries.append(self.url_result(playwire_url, 'Playwire')) From 573efc5b3d4c8b7c98aa12a12570df65c6c9b160 Mon Sep 17 00:00:00 2001 From: snipem Date: Sun, 12 Apr 2015 11:31:58 +0200 Subject: [PATCH 2/2] [FootyTube] Fixed wrong md5 checksum --- youtube_dl/extractor/footyroom.py | 1 - 1 file changed, 1 deletion(-) diff --git a/youtube_dl/extractor/footyroom.py b/youtube_dl/extractor/footyroom.py index dc784db96..70dfb0659 100644 --- a/youtube_dl/extractor/footyroom.py +++ b/youtube_dl/extractor/footyroom.py @@ -8,7 +8,6 @@ class FootyRoomIE(InfoExtractor): _VALID_URL = r'http://footyroom\.com/(?P[^/]+)' _TESTS = [{ 'url': 'http://footyroom.com/schalke-04-0-2-real-madrid-2015-02/', - 'md5': 'f38d400d32f19724570040d5ce3a505f', 'info_dict': { 'id': 'schalke-04-0-2-real-madrid-2015-02', 'title': 'Schalke 04 0 – 2 Real Madrid',