[4tube] Fix extraction (closes #13381)
authorgfabiano <gfabiano40@gmail.com>
Wed, 14 Jun 2017 21:16:50 +0000 (23:16 +0200)
committerSergey M <dstftw@gmail.com>
Wed, 14 Jun 2017 21:16:50 +0000 (04:16 +0700)
youtube_dl/extractor/fourtube.py

index 9776c8422228f1f44b5b0a3bf0c40a125e1fa50a..e3fd08bcfb6610b3394d2309e45f743e8562c97b 100644 (file)
@@ -85,11 +85,11 @@ class FourTubeIE(InfoExtractor):
             media_id = params[0]
             sources = ['%s' % p for p in params[2]]
 
-        token_url = 'http://tkn.4tube.com/{0}/desktop/{1}'.format(
+        token_url = 'https://tkn.kodicdn.com/{0}/desktop/{1}'.format(
             media_id, '+'.join(sources))
         headers = {
             b'Content-Type': b'application/x-www-form-urlencoded',
-            b'Origin': b'http://www.4tube.com',
+            b'Origin': b'https://www.4tube.com',
         }
         token_req = sanitized_Request(token_url, b'{}', headers)
         tokens = self._download_json(token_req, video_id)