X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Ffootyroom.py;h=4c7dbca4023944fddaf5ff65748e338108774ec8;hb=5c2266df4b9aeb7881ed8c026a038e2a25e43734;hp=2b4691ae85dd7c254d03f35d424fb8fc25268037;hpb=71705fa70d3f8b410a25a9c1fb01c33dd5bb6026;p=youtube-dl diff --git a/youtube_dl/extractor/footyroom.py b/youtube_dl/extractor/footyroom.py index 2b4691ae8..4c7dbca40 100644 --- a/youtube_dl/extractor/footyroom.py +++ b/youtube_dl/extractor/footyroom.py @@ -6,14 +6,21 @@ 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/', '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) @@ -36,6 +43,7 @@ class FootyRoomIE(InfoExtractor): r'data-config="([^"]+)"', payload, 'playwire url', default=None) if playwire_url: - entries.append(self.url_result(playwire_url, 'Playwire')) + entries.append(self.url_result(self._proto_relative_url( + playwire_url, 'http:'), 'Playwire')) return self.playlist_result(entries, playlist_id, playlist_title)