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

Viewster: Downloading no longer working #6787

Closed
daphee opened this issue Sep 7, 2015 · 9 comments
Closed

Viewster: Downloading no longer working #6787

daphee opened this issue Sep 7, 2015 · 9 comments

Comments

@daphee
Copy link

@daphee daphee commented Sep 7, 2015

Tested using a fresh build of master.

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.viewster.com/serie/1280-18794-000']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.03
[debug] Python version 3.4.3 - Linux-4.1.6-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2, rtmpdump 2.4
[debug] Proxy map: {}
[Viewster] 1280-18794-000: Downloading webpage
[Viewster] 1280-18794-000: Downloading entry JSON
[Viewster] 1280-18794-000: Downloading series JSON
[download] Downloading playlist: Gintama
[Viewster] playlist Gintama: Collected 49 video ids (downloading 49 of them)
[download] Downloading video 1 of 49
[Viewster] 1280-18794-001: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 404: Not Found (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.
  File "./youtube-dl/youtube_dl/extractor/common.py", line 326, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 1865, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 469, in open
    response = meth(req, response)
  File "/usr/lib/python3.4/urllib/request.py", line 579, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.4/urllib/request.py", line 501, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 684, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 469, in open
    response = meth(req, response)
  File "/usr/lib/python3.4/urllib/request.py", line 579, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.4/urllib/request.py", line 507, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 587, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

I investigated a little already.

With help from the chrome developer console I found out that the bare minimum of auth for downloading the video from viewsterall-vh.akamaihd.net is this

curl -H 'Cookie: _alid_=t2g86FO0BEW7O6Gjf7dHhg==' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36' --compressed 'http://viewsterall-vh.akamaihd.net/z/http_rtmpe/shared/s/viewster-0037-00-AkamaiHD/1280-18794-040_gintama-s01eps40_movie_viewster-0037-00-akamaihd_ja_en_x.smil/1125000_a870b9d0fef60587_Seg1-Frag1?hdntl=exp=1441712408~acl=%2fz%2fhttp_rtmpe%2fshared%2fs%2fviewster-0037-00-AkamaiHD%2f1280-18794-040_gintama-s01eps40_movie_viewster-0037-00-akamaihd_ja_en_x.smil%2f*~data=hdntl~hmac=067affecfc806bd7bc87896e7e0f0bba3061a010a9d74dc4b32a7a35a1448d9b&als=0,3,NaN,2,0,NaN,0,0,0,32,f,0,1450.99,f,s,QSMTGXJGTJNA,3.2.0,32&hdcore=3.2.0&plugin=flowplayer-3.2.0.1'

It seems that the alid cookie is the auth_token extracted from the initial auth_token cookie.

I tried adding this cookie with _set_cookie but it didn't work out.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

Can you watch it in browser now?

@daphee
Copy link
Author

@daphee daphee commented Sep 8, 2015

You mean with the viewsterall-vh.akamaihd.net link?

No I get an Authroization Error, too.

Navigating to viewster.com and watching the video works, of course.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

I mean the original URL http://www.viewster.com/serie/1280-18794-000. It does not work for me in browser.

@daphee
Copy link
Author

@daphee daphee commented Sep 8, 2015

Okay, sorry.

Weird. It does for me. I just opened your link from here with incognito mode and I get the first episode.

What do you get instead?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

@daphee
Copy link
Author

@daphee daphee commented Sep 8, 2015

Have you scripts enabled?

I just tried with firefox and the 404 shows for a very short time because that is the only thing in the page source but then the correct page renders.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

Yes, I have. http://www.viewster.com/movie/1140-11855-000, http://www.viewster.com/serie/1303-19426-000/ works fine.
404 for US, UK, DE and RU IPs.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

What's your location?

@daphee
Copy link
Author

@daphee daphee commented Sep 8, 2015

DE

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.