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

[RESOLVED] Not working with pornhub while claiming so #3922

Closed
ShadowOfHarbringer opened this issue Oct 11, 2014 · 3 comments
Closed

[RESOLVED] Not working with pornhub while claiming so #3922

ShadowOfHarbringer opened this issue Oct 11, 2014 · 3 comments

Comments

@ShadowOfHarbringer
Copy link

@ShadowOfHarbringer ShadowOfHarbringer commented Oct 11, 2014

I checked and pornhub is on the list of supported sites of youtube dl. But i have never successfully downloaded video from them yet (tried many youtube-dl versions). Comand output below:

$ youtube-dl --verbose http://www.pornhub.com/view_video.php?viewkey=391271256

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.pornhub.com/view_video.php?viewkey=391271256']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.05.2-gentoo_no_offensive_sites
[debug] Python version 2.7.6 - Linux-3.10.41-gentoo-r1-soofmanz-x86_64-Intel-R-_Core-TM-i7-4930K_CPU@_3.40GHz-with-gentoo-2.2
[debug] Proxy map: {}
[generic] view_video: Requesting header
WARNING: Falling back on generic information extractor.
[generic] view_video: Downloading webpage
[generic] view_video: Extracting information
ERROR: Unsupported URL: http://www.pornhub.com/view_video.php?viewkey=391271256; 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 "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/generic.py", line 540, in _real_extract
doc = parse_xml(webpage)
File "/usr/lib64/python2.7/site-packages/youtube_dl/utils.py", line 1550, in parse_xml
tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1300, in XML
parser.feed(text)
File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
ParseError: not well-formed (invalid token): line 99, column 52
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 524, in extract_info
ie_result = ie.extract(url)
File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/common.py", line 193, in extract
return self._real_extract(url)
File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/generic.py", line 907, in _real_extract
raise ExtractorError('Unsupported URL: %s' % url)
ExtractorError: Unsupported URL: http://www.pornhub.com/view_video.php?viewkey=391271256; 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.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 11, 2014

Looks like you are using youtube-dl from gentoo packages with "no offensive sites" filter (they just wipe out all the porno and etc. extractors from the resulting package). Not sure if this can be worked around somehow, but you can install original youtube-dl manually following our official instructions.

@ShadowOfHarbringer
Copy link
Author

@ShadowOfHarbringer ShadowOfHarbringer commented Oct 11, 2014

Sorry, i did not realise that it is disabled by default in Gentoo and i have to enable it myself.

I mean WTF ? Who the hell packaged it this way ?

@ShadowOfHarbringer
Copy link
Author

@ShadowOfHarbringer ShadowOfHarbringer commented Oct 11, 2014

This issue can be closed now.

@ShadowOfHarbringer ShadowOfHarbringer changed the title Not working with pornhub while claiming so [RESOLVED] Not working with pornhub while claiming so Oct 11, 2014
@dstftw dstftw closed this Oct 11, 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.