mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-29 13:42:37 +00:00
[FootyRoom] Fixed missing http prefix
For some reason FootyTube is missing the „http:“ prefix on some Playwire links for some videos
This commit is contained in:
parent
b04b94da5f
commit
7d2ba6394c
1 changed files with 15 additions and 2 deletions
|
@ -6,14 +6,25 @@ from .common import InfoExtractor
|
||||||
|
|
||||||
class FootyRoomIE(InfoExtractor):
|
class FootyRoomIE(InfoExtractor):
|
||||||
_VALID_URL = r'http://footyroom\.com/(?P<id>[^/]+)'
|
_VALID_URL = r'http://footyroom\.com/(?P<id>[^/]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'http://footyroom.com/schalke-04-0-2-real-madrid-2015-02/',
|
'url': 'http://footyroom.com/schalke-04-0-2-real-madrid-2015-02/',
|
||||||
|
'md5': 'f38d400d32f19724570040d5ce3a505f',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'schalke-04-0-2-real-madrid-2015-02',
|
'id': 'schalke-04-0-2-real-madrid-2015-02',
|
||||||
'title': 'Schalke 04 0 – 2 Real Madrid',
|
'title': 'Schalke 04 0 – 2 Real Madrid',
|
||||||
},
|
},
|
||||||
'playlist_count': 3,
|
'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):
|
def _real_extract(self, url):
|
||||||
playlist_id = self._match_id(url)
|
playlist_id = self._match_id(url)
|
||||||
|
@ -35,6 +46,8 @@ class FootyRoomIE(InfoExtractor):
|
||||||
playwire_url = self._search_regex(
|
playwire_url = self._search_regex(
|
||||||
r'data-config="([^"]+)"', payload,
|
r'data-config="([^"]+)"', payload,
|
||||||
'playwire url', default=None)
|
'playwire url', default=None)
|
||||||
|
if not playwire_url.startswith("http:"):
|
||||||
|
playwire_url = "http:" + playwire_url
|
||||||
if playwire_url:
|
if playwire_url:
|
||||||
entries.append(self.url_result(playwire_url, 'Playwire'))
|
entries.append(self.url_result(playwire_url, 'Playwire'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue