aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorgfabiano <gfabiano40@gmail.com>2017-06-14 23:16:50 +0200
committerSergey M <dstftw@gmail.com>2017-06-15 04:16:50 +0700
commit0bf4b71b753534ac4a93d9893dcd7333b5f229b3 (patch)
tree49c228248a5fe84fa042571d490b7eaacc6be768 /youtube_dl
parent5215f45327a1ca84c73b98df05c1977520cfb0a4 (diff)
[4tube] Fix extraction (closes #13381)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/fourtube.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/fourtube.py b/youtube_dl/extractor/fourtube.py
index 9776c8422..e3fd08bcf 100644
--- a/youtube_dl/extractor/fourtube.py
+++ b/youtube_dl/extractor/fourtube.py
@@ -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)