logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: b8b622fbebb158db95edb05a8cc248668194b430
parent ec64ec9651848e9173ec033a9a27809e4b5063bc
Author: Remita Amine <remitamine@gmail.com>
Date:   Thu,  4 Mar 2021 17:57:16 +0100

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

Diffstat:

Myoutube_dl/extractor/trovo.py1+
1 file changed, 1 insertion(+), 0 deletions(-)

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