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

Unable to extract title #4822

Closed
TheGr33k opened this issue Jan 30, 2015 · 10 comments
Closed

Unable to extract title #4822

TheGr33k opened this issue Jan 30, 2015 · 10 comments
Assignees

Comments

@TheGr33k
Copy link

@TheGr33k TheGr33k commented Jan 30, 2015

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

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-g', '--verbose', 'http://www.pornhub.com/view_video.php?viewkey=107237']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.30.2
[debug] Python version 3.4.2 - Linux-3.10.0-123.13.2.el7.x86_64-x86_64-with-centos-7.0.1406-Core
[debug] exe versions: none
[debug] Proxy map: {}
ERROR: Unable to extract title; 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.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 618, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 266, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/pornhub.py", line 57, in _real_extract
    video_title = self._html_search_regex(r'<h1 [^>]+>([^<]+)', webpage, 'title')
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 532, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 522, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract title; 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.
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 30, 2015

Error Page Not Found

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 30, 2015

This one works for me. Could you upload *.dump files when running with --write-pages?

@TheGr33k
Copy link
Author

@TheGr33k TheGr33k commented Jan 30, 2015

youtube-dl -g http://www.pornhub.com/view_video.php?viewkey=2147327275

ERROR: Unable to extract title; 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.

Here is the dump

https://www.sendspace.com/file/o0jno2

youtube-dl is up-to-date (2015.01.30.2)

@phihag phihag self-assigned this Jan 30, 2015
@phihag
Copy link
Contributor

@phihag phihag commented Jan 30, 2015

This looks like a weird redirect, probably for caching purposes. I'll look into it; thanks for the report.

phihag added a commit that referenced this issue Feb 1, 2015
In preparation for #4822, extend jsinterp by a lot. (We may even have to/want to write a proper interpreter with actual parsing)
@fenglin1202
Copy link

@fenglin1202 fenglin1202 commented Jul 9, 2015

i meat the same problem too. seems all pornhub videos could not be downloaded.
youtube-dl version 2015.07.07
the dump file: https://goo.gl/TIklUA
and the verbose logs:

D:\Moo0\YouTube-DL 1.07\vdl>youtube-dl.exe --verbose --write-pages http://www.pornhub.com/view_video.php?viewkey=2062141185
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--write-pages', u'http://www.pornhub.com/view_video.php?viewkey=2062141185']
[debug] Encodings: locale cp950, fs mbcs, out cp950, pref cp950
[debug] youtube-dl version 2015.07.07
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[PornHub] 2062141185: Downloading webpage
[PornHub] Saving request to 2062141185_http_-_www.pornhub.com_view_video.phpviewkey=2062141185.dump
ERROR: Unable to extract title; 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.
Traceback (most recent call last):
  File "youtube_dl\YoutubeDL.pyo", line 654, in extract_info
  File "youtube_dl\extractor\common.pyo", line 273, in extract
  File "youtube_dl\extractor\pornhub.pyo", line 66, in _real_extract
  File "youtube_dl\extractor\common.pyo", line 564, in _html_search_regex
  File "youtube_dl\extractor\common.pyo", line 555, in _search_regex
RegexNotFoundError: Unable to extract title; 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.
@ghost
Copy link

@ghost ghost commented Aug 6, 2015

Pornhub support seems to be broken

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-g', u'--verbose', u'http://www.pornhub.com/view_video.php?viewkey=2147327275']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.07.28
[debug] Python version 2.7.6 - Linux-3.13.0-37-generic-x86_64-with-LinuxMint-17.1-rebecca
[debug] exe versions: none
[debug] Proxy map: {}
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 656, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 279, in extract
    return self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/pornhub.py", line 113, in _real_extract
    self._sort_formats(formats)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 735, in _sort_formats
    raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@gebn
Copy link
Contributor

@gebn gebn commented Aug 6, 2015

@k1-hedayati I fixed this in 754e70c; it'll be in the next release.

@ghost
Copy link

@ghost ghost commented Aug 9, 2015

@gebn That's great! Thanks for support.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 27, 2016

Duplicate of #5930.

@dstftw dstftw closed this Jul 27, 2016
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
5 participants
You can’t perform that action at this time.