1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-10 11:27:27 +00:00

[trovo] Add Origin header to VOD formats(closes #28346)

This commit is contained in:
Remita Amine 2021-03-04 17:57:16 +01:00
parent ec64ec9651
commit b8b622fbeb

View File

@ -153,6 +153,7 @@ class TrovoVodIE(TrovoBaseIE):
'protocol': 'm3u8_native', 'protocol': 'm3u8_native',
'tbr': int_or_none(play_info.get('bitrate')), 'tbr': int_or_none(play_info.get('bitrate')),
'url': play_url, 'url': play_url,
'http_headers': {'Origin': 'https://trovo.live'},
}) })
self._sort_formats(formats) self._sort_formats(formats)