mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 09:49:26 +01:00
[tnaflix] Fix relative URLs (empflix)
This commit is contained in:
parent
3ce9bc712a
commit
3d6388e34e
@ -61,14 +61,15 @@ def _real_extract(self, url):
|
|||||||
cfg_url, display_id, note='Downloading metadata',
|
cfg_url, display_id, note='Downloading metadata',
|
||||||
transform_source=fix_xml_ampersands)
|
transform_source=fix_xml_ampersands)
|
||||||
|
|
||||||
thumbnail = cfg_xml.find('./startThumb').text
|
thumbnail = self._proto_relative_url(
|
||||||
|
cfg_xml.find('./startThumb').text, 'http:')
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for item in cfg_xml.findall('./quality/item'):
|
for item in cfg_xml.findall('./quality/item'):
|
||||||
video_url = re.sub('speed=\d+', 'speed=', item.find('videoLink').text)
|
video_url = re.sub('speed=\d+', 'speed=', item.find('videoLink').text)
|
||||||
format_id = item.find('res').text
|
format_id = item.find('res').text
|
||||||
fmt = {
|
fmt = {
|
||||||
'url': video_url,
|
'url': self._proto_relative_url(video_url, 'http:'),
|
||||||
'format_id': format_id,
|
'format_id': format_id,
|
||||||
}
|
}
|
||||||
m = re.search(r'^(\d+)', format_id)
|
m = re.search(r'^(\d+)', format_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user