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

Watch later feed url is interpreted as a video (was: ytwatchlater extractor doesn't work for youtube watch-later page.) #1294

Closed
ffernand opened this issue Aug 22, 2013 · 3 comments
Labels
bug

Comments

@ffernand
Copy link

@ffernand ffernand commented Aug 22, 2013

I've tried downloading the list of videos from the watch-later section of youtube. The following command is what I've tried (minus credentials)

youtube-dl --verbose -cit -u [EMAILADDRESS] -p [PASSWORD] ytwatchlater

... producing the following output:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-cit', '-u', '[EMAILADDRESS]', '-p', '[PASSWORD]', 'ytwatchlater']
[debug] youtube-dl version 2013.08.17
[debug] Python version 2.7.3 - Linux-3.5.0-37-generic-x86_64-with-Ubuntu-12.04-precise
[debug] Proxy map: {}
[youtube] Setting language
[youtube] Logging in
[youtube] Confirming age
[youtube] ytwatchlater: Downloading video webpage
[youtube] ytwatchlater: Downloading video info webpage
ERROR: YouTube said: Invalid parameters.
Traceback (most recent call last):
  File "/home/myself/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
    ie_result = ie.extract(url)
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/common.py", line 96, in extract
    return self._real_extract(url)
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 596, in _real_extract
    raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True)
ExtractorError: YouTube said: Invalid parameters.

I've also tried using the full url

youtube-dl --verbose -cit -u [EMAILADDRESS] -p [PASSWORD] https://www.youtube.com/feed/watch_later

Which equally doesn't work but produced a different stack-trace...

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-cit', '-u', '[EMAILADDRESS]', '-p', '[PASSWORD]', 'http://www.youtube.com/feed/watch_later']
[debug] youtube-dl version 2013.08.17
[debug] Python version 2.7.3 - Linux-3.5.0-37-generic-x86_64-with-Ubuntu-12.04-precise
[debug] Proxy map: {}
[youtube] Setting language
[youtube] Logging in
[youtube] Confirming age
[youtube] feed: Downloading video webpage
ERROR: Unable to download video webpage: HTTP Error 404: Not Found; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 550, in _real_extract
    video_webpage_bytes = compat_urllib_request.urlopen(request).read()
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/home/myself/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
    ie_result = ie.extract(url)
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/common.py", line 96, in extract
    return self._real_extract(url)
  File "/home/myself/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 552, in _real_extract
    raise ExtractorError(u'Unable to download video webpage: %s' % compat_str(err))
ExtractorError: Unable to download video webpage: HTTP Error 404: Not Found; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

The following is version info...

$ youtube-dl -U
youtube-dl is up-to-date (2013.08.17)

Only [EMAILADDRESS] AND [PASSWORD] in output were changed to protect the innocent ;)

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 22, 2013

You have to call it with :ytwatchlater, like youtube-dl :ytwatchlater -u ... -p ..., this is done so that it's not interpreted as a Youtube video id.
The second error is a bug, because it's interpreted as a youtube video url, with id feed.

You can use --netrc and the ~/.netrc file to hide the login information and to save time typing it.

@ffernand
Copy link
Author

@ffernand ffernand commented Aug 22, 2013

Ahh, ok! Feeling sheepish... much appreciated!!!

@ffernand ffernand closed this Aug 22, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 22, 2013

We have to fix the https://www.youtube.com/feed/watch_later being interpreted as a video.

@jaimeMF jaimeMF reopened this Aug 22, 2013
@jaimeMF jaimeMF closed this in faab1d3 Sep 6, 2013
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.