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

[vimeo] Private videos in password-protected albums not working #8030

Closed
dcywka opened this issue Dec 28, 2015 · 3 comments
Closed

[vimeo] Private videos in password-protected albums not working #8030

dcywka opened this issue Dec 28, 2015 · 3 comments

Comments

@dcywka
Copy link

@dcywka dcywka commented Dec 28, 2015

Both fail for the same reason:

# youtube-dl https://vimeo.com/album/3630584 --video-password [xxx] -v
# youtube-dl https://vimeo.com/album/3630584/video/143891866 --video-password [xxx] -v

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://vimeo.com/album/3630584', u'--video-password', u'PRIVATE', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.12.23
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.2
[debug] exe versions: none
[debug] Proxy map: {}
[vimeo:album] 3630584: Downloading page 1
[vimeo:album] 3630584: Verifying the password
[download] Downloading playlist: NPS2.0
[vimeo:album] 3630584: Downloading page 2
[vimeo:album] playlist NPS2.0: Downloading 21 videos
[download] Downloading video 1 of 21
[vimeo] 143891866: 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 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 330, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1886, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
# youtube-dl https://vimeo.com/album/3630584 --video-password [xxx] -v --print-traffic
[download] Downloading video 1 of 21
[vimeo] 143891866: Downloading webpage
send: u'GET /143891866 HTTP/1.1\r\n[...]'
reply: 'HTTP/1.1 404 Not Found\r\n'
[...]
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.

The problems I've discovered:

  1. VimeoAlbumIE returns links in vimeo.com/{id} format, while vimeo servers seem to only respond to vimeo.com/album/{album_id}/video/{id} requests in this scenario.
  2. vimeo.com/album/{album_id}/video/{id} links are not supported neither by VimeoIE nor VimeoAlbumIE properly.

(Sorry, I can't share the password.)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 28, 2015

It works fine with out private album:

> youtube-dl https://vimeo.com/album/3253534 --video-password youtube-dl
[vimeo:album] 3253534: Downloading page 1
[vimeo:album] 3253534: Verifying the password
[download] Downloading playlist: test
[vimeo:album] playlist test: Downloading 1 videos
[download] Downloading video 1 of 1
[vimeo:album_video] 119195465: Downloading webpage
[vimeo:album_video] 119195465: Extracting information
[vimeo:album_video] 119195465: Downloading webpage
[vimeo:album_video] 119195465: Downloading JSON metadata
[vimeo:album_video] 119195465: Downloading m3u8 information
[download] Destination: youtube-dl test video '' -BaW jenozKc-119195465.mp4
[download]  12.2% of 517.02KiB at 252.00KiB/s ETA 00:01
ERROR: Interrupted by user

Sorry, I can't share the password

You have to provide all necessary data to reproduce this issue or suggest any other way to do so.

@dcywka
Copy link
Author

@dcywka dcywka commented Dec 28, 2015

It's been working in your test case because the video itself is not private (https://vimeo.com/119195465).

I've uploaded a video to demonstrate this issue. It's set to "Only me" in privacy settings and it's only available through this album: https://vimeo.com/album/3717291 (password: youtube-dl).

$ youtube-dl https://vimeo.com/album/3717291 --video-password youtube-dl
[vimeo:album] 3717291: Downloading page 1
[vimeo:album] 3717291: Verifying the password
[download] Downloading playlist: youtube-dl test private album
[vimeo:album] playlist youtube-dl test private album: Downloading 1 videos
[download] Downloading video 1 of 1
[vimeo] 150187356: 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.

$ youtube-dl https://vimeo.com/album/3717291/video/150187356 --video-password youtube-dl
[vimeo:album] 3717291: Downloading page 1
[vimeo:album] 3717291: Verifying the password
[download] Downloading playlist: youtube-dl test private album
[vimeo:album] playlist youtube-dl test private album: Downloading 1 videos
[download] Downloading video 1 of 1
[vimeo] 150187356: 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.

$ youtube-dl https://vimeo.com/150187356 --video-password youtube-dl
[vimeo] 150187356: 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.

See my first post for verbose output.

After my changes:

$ python -m youtube_dl https://vimeo.com/album/3717291 --video-password youtube-dl
[vimeo:album] 3717291: Downloading page 1
[vimeo:album] 3717291: Verifying the password
[download] Downloading playlist: youtube-dl test private album
[vimeo:album] playlist youtube-dl test private album: Downloading 1 videos
[download] Downloading video 1 of 1
[vimeo:album_video] 150187356: Downloading webpage
[vimeo:album_video] 150187356: Extracting information
[vimeo:album_video] 150187356: Downloading webpage
[vimeo:album_video] 150187356: Downloading JSON metadata
[vimeo:album_video] 150187356: Downloading m3u8 information
[download] Destination: bbb sunflower 1080p 60fps normal-150187356.mp4
[download] 100% of 229.62MiB in 01:01
[download] Finished downloading playlist: youtube-dl test private album

$ python -m youtube_dl https://vimeo.com/album/3717291/video/150187356 --video-password youtube-dl
[vimeo:album_video] 150187356: Downloading webpage
[vimeo:album_video] 150187356: Extracting information
[vimeo:album_video] 150187356: Verifying the password
[vimeo:album_video] 150187356: Downloading webpage
[vimeo:album_video] 150187356: Extracting information
[vimeo:album_video] 150187356: Downloading webpage
[vimeo:album_video] 150187356: Downloading JSON metadata
[vimeo:album_video] 150187356: Downloading m3u8 information
[download] Destination: bbb sunflower 1080p 60fps normal-150187356.mp4
[download] 100% of 229.62MiB in 00:19
@dcywka
Copy link
Author

@dcywka dcywka commented Dec 28, 2015

Added tests: ff76252

@remitamine remitamine closed this Aug 3, 2019
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.

3 participants
You can’t perform that action at this time.