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

Shortened links doesn't work anymore #696

Closed
nagisa opened this issue Feb 21, 2013 · 4 comments
Closed

Shortened links doesn't work anymore #696

nagisa opened this issue Feb 21, 2013 · 4 comments
Assignees

Comments

@nagisa
Copy link

@nagisa nagisa commented Feb 21, 2013

I remember you could put a shortened link to a video (t.co for example) and youtube-dl would follow it without any complaints. Now it doesn't work anymore. streamvid is a wrapper which runs youtube-dl --get-url

$ streamvid 'http://t.co/SOMEGARBAGE'
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 6, in <module>
    youtube_dl.main()
  File "/usr/lib/python3.3/site-packages/youtube_dl/__init__.py", line 515, in main
    _real_main()
  File "/usr/lib/python3.3/site-packages/youtube_dl/__init__.py", line 499, in _real_main
    retcode = fd.download(all_urls)
  File "/usr/lib/python3.3/site-packages/youtube_dl/FileDownloader.py", line 509, in download
    videos = ie.extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/InfoExtractors.py", line 93, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/InfoExtractors.py", line 1347, in _real_extract
    if self._test_redirect(url): return
  File "/usr/lib/python3.3/site-packages/youtube_dl/InfoExtractors.py", line 1333, in _test_redirect
    compat_urllib_error.HTTPErrorProcessor, compat_urllib_request.HTTPSHandler]:
AttributeError: 'module' object has no attribute 'HTTPErrorProcessor'
youtube-dl --version
2013.02.19
@phihag
Copy link
Contributor

@phihag phihag commented Feb 21, 2013

Can you post an actual invocation of youtube-dl, if possible with the option -v? Obviously, http://t.co/SOMEGARBAGE just returns a 404, and that works fine on my machine.

@nagisa
Copy link
Author

@nagisa nagisa commented Feb 21, 2013

All following commands

youtube-dl --get-url 'http://t.co/GALm6cCVQL' --verbose
youtube-dl --get-url 'http://t.co/GALm6cCVQL' -v
youtube-dl -v --get-url 'http://t.co/GALm6cCVQL'
youtube-dl -v --get-url http://t.co/GALm6cCVQL

output following content byte-to-byte (that is no debugging output)

Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 6, in <module>
    youtube_dl.main()
  File "/usr/lib/python3.3/site-packages/youtube_dl/__init__.py", line 515, in main
    _real_main()
  File "/usr/lib/python3.3/site-packages/youtube_dl/__init__.py", line 499, in _real_main
    retcode = fd.download(all_urls)
  File "/usr/lib/python3.3/site-packages/youtube_dl/FileDownloader.py", line 509, in download
    videos = ie.extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/InfoExtractors.py", line 93, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/InfoExtractors.py", line 1347, in _real_extract
    if self._test_redirect(url): return
  File "/usr/lib/python3.3/site-packages/youtube_dl/InfoExtractors.py", line 1333, in _test_redirect
    compat_urllib_error.HTTPErrorProcessor, compat_urllib_request.HTTPSHandler]:
AttributeError: 'module' object has no attribute 'HTTPErrorProcessor'

If I run

youtube-dl -v http://t.co/GALm6cCVQL

youtube-dl outputs following text

[debug] youtube-dl version 2013.02.19
[debug] Python version 3.3.0 - Linux-3.7.9-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}

and then the same traceback as posted above.

Source for streamvid as seen in the first post is available here.

@phihag
Copy link
Contributor

@phihag phihag commented Feb 21, 2013

Thanks, that's 3.3-specific. I'll have a look at it.

@ghost ghost assigned phihag Feb 21, 2013
@phihag phihag closed this in 7c038b3 Feb 21, 2013
@phihag
Copy link
Contributor

@phihag phihag commented Feb 21, 2013

Again, thanks for reporting. This has been fixed in tree and will be in the next release.

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.