Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[it.dplay.com] Authentication or cookies.txt or netrc doesn't work #25909

Closed
fpusersuggest opened this issue Jul 6, 2020 · 0 comments
Closed

[it.dplay.com] Authentication or cookies.txt or netrc doesn't work #25909

fpusersuggest opened this issue Jul 6, 2020 · 0 comments
Labels

Comments

@fpusersuggest
Copy link

@fpusersuggest fpusersuggest commented Jul 6, 2020

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.06.16.1
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.