X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Ffootyroom.py;h=4c7dbca4023944fddaf5ff65748e338108774ec8;hb=588b82bbf8c90981c54f180eca40e6c743f8f89f;hp=70dfb06590f74d1e25d37b0a4d3e8f6dd8ba1273;hpb=9a4d8fae82f10afe8b2d0611f2f054af60dc7acc;p=youtube-dl diff --git a/youtube_dl/extractor/footyroom.py b/youtube_dl/extractor/footyroom.py index 70dfb0659..4c7dbca40 100644 --- a/youtube_dl/extractor/footyroom.py +++ b/youtube_dl/extractor/footyroom.py @@ -13,17 +13,14 @@ class FootyRoomIE(InfoExtractor): '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) @@ -45,9 +42,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')) + entries.append(self.url_result(self._proto_relative_url( + playwire_url, 'http:'), 'Playwire')) return self.playlist_result(entries, playlist_id, playlist_title)