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

youtube url from email subscription #2214

Closed
spvkgn opened this issue Jan 23, 2014 · 2 comments
Closed

youtube url from email subscription #2214

spvkgn opened this issue Jan 23, 2014 · 2 comments

Comments

@spvkgn
Copy link

@spvkgn spvkgn commented Jan 23, 2014

Email updates from Youtube subscription contains url as follows http://www.youtube.com/attribution_link?a=iLnJgB_ua8M&u=/watch%3Fv%3DzWkkGH2dRjo%26feature%3Dem-uploademail

This url does not work with youtube-dl. Is there a way to add support for this url?

$ ~/apps/bin/youtube-dl -gv http://www.youtube.com/attribution_link?a=iLnJgB_ua8M&u=/watch%3Fv%3DzWkkGH2dRjo%26feature%3Dem-uploademail
[1] 18886
~ $ [debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-gv', 'http://www.youtube.com/attribution_link?a=iLnJgB_ua8M']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.23
[debug] Python version 2.7.3 - Linux-3.2.0-39-generic-i686-with-LinuxMint-13-maya
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unable to download 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.
File "/home/pavel/apps/bin/youtube-dl/youtube_dl/extractor/common.py", line 190, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/home/pavel/apps/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1150, in urlopen
return self._opener.open(req)
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)

^C
[1]+ Выход из 1 ~/apps/bin/youtube-dl -gv http://www.youtube.com/attribution_link?a=iLnJgB_ua8M

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 23, 2014

youtube-dl 'http://www.youtube.com/attribution_link?a=iLnJgB_ua8M&u=/watch%3Fv%3DzWkkGH2dRjo%26feature%3Dem-uploademail'
[generic] watch%3Fv%3DzWkkGH2dRjo%26feature%3Dem-uploademail: Requesting header
[redirect] Following redirect to http://www.youtube.com/watch?v=zWkkGH2dRjo&feature=em-uploademail
[youtube] Setting language
[youtube] zWkkGH2dRjo: Downloading webpage
[youtube] zWkkGH2dRjo: Downloading video info webpage
[youtube] zWkkGH2dRjo: Extracting video information
...

If the url contains & you have to enclose the url with ' or ", otherwise youtbe-dl only get the part before the &(in that case http://www.youtube.com/attribution_link?a=iLnJgB_ua8M, as you can see in the debug output)

@jaimeMF jaimeMF closed this Jan 23, 2014
@spvkgn
Copy link
Author

@spvkgn spvkgn commented Jan 23, 2014

Thank you!

phihag added a commit that referenced this issue Jan 23, 2014
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.