Explorar el Código

[chaturbate] Use geo verification headers

Sergey M․ hace 7 años
padre
commit
0a10f50e2f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      youtube_dl/extractor/chaturbate.py

+ 2 - 1
youtube_dl/extractor/chaturbate.py

@@ -31,7 +31,8 @@ class ChaturbateIE(InfoExtractor):
     def _real_extract(self, url):
         video_id = self._match_id(url)
 
-        webpage = self._download_webpage(url, video_id)
+        webpage = self._download_webpage(
+            url, video_id, headers=self.geo_verification_headers())
 
         m3u8_urls = []