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 #2533

Closed
sipp11 opened this issue Mar 10, 2014 · 3 comments
Closed

Unable to extract title #2533

sipp11 opened this issue Mar 10, 2014 · 3 comments

Comments

@sipp11
Copy link

@sipp11 sipp11 commented Mar 10, 2014

Just updated to latest version by youtube-dl -U; still no luck. It's 4k video.

$ youtube-dl --verbose https://www.youtube.com/watch\?v\=hHKJ5eE7I1k\&list\=PLWqMzMiAOe5iCJYYJw0-iOd-e3x
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=hHKJ5eE7I1k&list=PLWqMzMiAOe5iCJYYJw0-iOd-e3x']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.03.07.1
[debug] Python version 2.7.5 - Darwin-13.1.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube:playlist] Downloading playlist PLPLWqMzMiAOe5iCJYYJw0-iOd-e3x - add --no-playlist to just download video hHKJ5eE7I1k
[youtube:playlist] PLWqMzMiAOe5iCJYYJw0-iOd-e3x: Downloading webpage
ERROR: Unable to extract title; 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/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 500, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 162, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1552, in _real_extract
    r'<h1 class="pl-header-title">\s*(.*?)\s*</h1>', page, u'title')
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 370, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 360, in _search_regex
    raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract title; 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.
@phihag
Copy link
Contributor

@phihag phihag commented Mar 10, 2014

Thank you for the report, I can reproduce it just fine. However, I cannot find the playlist itself - https://www.youtube.com/watch?v=hHKJ5eE7I1k&list=PLWqMzMiAOe5iCJYYJw0-iOd-e3x is just a video for me. How did you get to that playlist?

@phihag
Copy link
Contributor

@phihag phihag commented Mar 10, 2014

Oh, I've found it. It looks like a part of the URL was cropped, the correct URL is https://www.youtube.com/watch?v=OkAiKENYk3o&list=PLWqMzMiAOe5iCJYYJw0-iOd-e3xOyAR3C . Try

youtube-dl -v 'https://www.youtube.com/watch?v=OkAiKENYk3o&list=PLWqMzMiAOe5iCJYYJw0-iOd-e3xOyAR3C'
@phihag phihag closed this Mar 10, 2014
@sipp11
Copy link
Author

@sipp11 sipp11 commented Mar 10, 2014

Oh I didn't know that it was cropped. I clicked this link via some review site I didn't remember but it didn't work with YouTube-dl. I found it was a rare case that YouTube-dl can't handle. So I reported.

Thanks a bunch anyway 👍

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.