mirror of
https://github.com/l1ving/youtube-dl
synced 2026-05-23 20:09:57 +08:00
[unauthorizedtv] Require csrf-token
This commit is contained in:
@@ -21,7 +21,7 @@ class UnauthorizedTvIE(InfoExtractor):
|
||||
|
||||
html = self._download_webpage(url, video_id)
|
||||
|
||||
csrf_token = self._html_search_meta('csrf-token', html, 'csrf token', default=None)
|
||||
csrf_token = self._html_search_meta('csrf-token', html, 'csrf token', fatal=True)
|
||||
|
||||
headers = {
|
||||
'Referer': url,
|
||||
|
||||
Reference in New Issue
Block a user