Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Verbose log
./youtube-dl --cookies /home/myuser/Downloads/cookies.txt --verbose "https://it.dplay.com/investigation-discovery/il-tuo-peggior-incubo/stagione-3-episodio-6/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--cookie', u'/home/mysuse/Downloads/cookies.txt', u'--verbose', u'https://it.dplay.com/investigation-discovery/il-tuo-peggior-incubo/stagione-3-episodio-6/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 2.7.17 (CPython) - Linux-5.3.0-62-generic-x86_64-with-Ubuntu-19.10-eoan
[debug] exe versions: ffmpeg 4.1.4-1build2, ffprobe 4.1.4-1build2, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 79.28.3.201 (IT) as X-Forwarded-For.
[DPlay] il-tuo-peggior-incubo/stagione-3-episodio-6: Downloading token
[DPlay] il-tuo-peggior-incubo/stagione-3-episodio-6: Downloading JSON metadata
[DPlay] il-tuo-peggior-incubo/stagione-3-episodio-6: Downloading JSON metadata
ERROR: This video is only available for registered users. Use --username and --password or --netrc to provide account credentials.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/extractor/dplay.py", line 163, in _get_disco_api_info
display_id, headers=headers)['data']['attributes']['streaming']
File "./youtube-dl/youtube_dl/extractor/common.py", line 892, in _download_json
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 870, in _download_json_handle
expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 660, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "./youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are
using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/dplay.py", line 247, in _real_extract
url, display_id, host, 'dplay' + country, country)
File "./youtube-dl/youtube_dl/extractor/dplay.py", line 172, in _get_disco_api_info
self.raise_login_required()
File "./youtube-dl/youtube_dl/extractor/common.py", line 936, in raise_login_required
expected=True)
ExtractorError: This video is only available for registered users. Use --username and --password or --netrc to provide account credentials.
Description
I tried different way to authenticate. With the classic --username --password that doesn't work because of captcha. I tried the .netrc file. And I tried with cookies flag. I exported the cookies.txt file with different addon on firefox:
and this one on chrome:
Obviously I was logged on it.dplay.com
I also tried to change the user-agent string with that one is on my browser.
I checked also other closed bugs, but it didn't help. In my opinion they should not be closed.
I also tried netrc + cookies.
The folowing is my .netrc file in my home:
$ cat /home/myusersss/.netrc
machine dplay login mylogin@gmail.com password xxxxxxxxxxxxxxxxxxx
Anyway it doesn't work.