Explorar o código

[twitch] Fix authentication (refs #27743)

Sergey M․ %!s(int64=4) %!d(string=hai) anos
pai
achega
c2d06aef60
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/twitch.py

+ 1 - 1
youtube_dl/extractor/twitch.py

@@ -76,7 +76,7 @@ class TwitchBaseIE(InfoExtractor):
 
             headers = {
                 'Referer': page_url,
-                'Origin': page_url,
+                'Origin': 'https://www.twitch.tv',
                 'Content-Type': 'text/plain;charset=UTF-8',
             }