[trovo] Add Origin header to VOD formats(closes #28346)
authorRemita Amine <remitamine@gmail.com>
Thu, 4 Mar 2021 16:57:16 +0000 (17:57 +0100)
committerRemita Amine <remitamine@gmail.com>
Thu, 4 Mar 2021 16:57:16 +0000 (17:57 +0100)
youtube_dl/extractor/trovo.py

index 43745213da2099f535619c94e2c56188e0fb683b..de0107aa929bf8376dc83ab564ba7feb137af668 100644 (file)
@@ -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)