question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PBS: An extractor error has occurred. (caused by KeyError('title'))

See original GitHub issue

Checklist

Region

United States

Description

I attempted to download episodes of “Broken Bread”, however they all return an error.

Verbose log

[debug] Command-line config: ['-vU', 'https://www.pbs.org/video/the-future-of-restaurants-rbs0v8/']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.01.21 [f20d607b0]
[debug] Python version 3.10.2 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] exe versions: none
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.01.21, Current version: 2022.01.21
yt-dlp is up to date (2022.01.21)
[debug] Using fake IP 6.233.58.236 (US) as X-Forwarded-For
[pbs] Downloading JSON metadata
[debug] [pbs] Extracting URL: https://www.pbs.org/video/the-future-of-restaurants-rbs0v8/
[pbs] the-future-of-restaurants-rbs0v8: Downloading webpage
[pbs] the-future-of-restaurants-rbs0v8: Downloading widget/partnerplayer page
[pbs] the-future-of-restaurants-rbs0v8: Downloading portalplayer page
ERROR: An extractor error has occurred. (caused by KeyError('title')); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\jesse\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 612, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\jesse\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\extractor\pbs.py", line 693, in _real_extract
    'title': info['title'],
KeyError: 'title'
Traceback (most recent call last):
  File "C:\Users\jesse\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 612, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\jesse\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\extractor\pbs.py", line 693, in _real_extract
    'title': info['title'],
KeyError: 'title'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\jesse\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1367, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\jesse\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1437, in __extract_info
    ie_result = ie.extract(url)
  File "C:\Users\jesse\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 642, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e, video_id=self.get_temp_id(url))
yt_dlp.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('title')); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sydlexiuscommented, Feb 3, 2022

Try --no-geo-bypass.

This appears to work in the UK (also for yt-dl). Otherwise a portalplayer page is returned with a ‘not available in your area’ message, and no ‘videoBridge’ JS, and extraction fails, since the empty object has no title member. yt-dl error is ‘No video formats found’, but otherwise similar.

The PBS extractor’s URL pattern has a final / that seems unnecessary, but doesn’t affect this issue.

It works with that command-line paramater, FYI.

0reactions
jlkauffman92commented, Jun 27, 2022

Also in US and also getting this problem. --no-geo-bypass also fails:

yt-dlp https://www.pbs.org/wgbh/nova/video/life-and-death-in-the-war-zone/ -vU --no-geo-bypass [debug] Command-line config: [‘https://www.pbs.org/wgbh/nova/video/life-and-death-in-the-war-zone/’, ‘-vU’, ‘–no-geo-bypass’] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version 2022.06.22.1 [a86e01e] (win32_exe) [debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0 [debug] Checking exe version: ffmpeg -bsfs [debug] Checking exe version: ffprobe -bsfs [debug] exe versions: ffmpeg 5.0.1-essentials_build-www.gyan.dev (setts), ffprobe 5.0.1-essentials_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3 [debug] Proxy map: {} [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest Latest version: 2022.06.22.1, Current version: 2022.06.22.1 yt-dlp is up to date (2022.06.22.1) [pbs] Downloading JSON metadata [debug] [pbs] Extracting URL: https://www.pbs.org/wgbh/nova/video/life-and-death-in-the-war-zone/ [pbs] life-and-death-in-the-war-zone: Downloading webpage [pbs] Downloading widget/partnerplayer page [pbs] Downloading portalplayer page ERROR: An extractor error has occurred. (caused by KeyError(‘title’)); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U File “yt_dlp\extractor\common.py”, line 647, in extract File “yt_dlp\extractor\pbs.py”, line 690, in _real_extract KeyError: ‘title’

Read more comments on GitHub >

github_iconTop Results From Across the Web

youtube_dl.utils.ExtractorError: An extractor error has occurred ...
ERROR: An extractor error has occurred. (caused by KeyError('media',)); please report this issue on https://yt-dl.org/bug .
Read more >
Development/2014 - VistrailsWiki
[TE] bundles. Finished command-line and core API for handling bundle data; controller has methods for adding data to bundle · [TE] web crawler....
Read more >
EasyBuild v4.6.2 documentation (release 20221021.0)
fix installation of easybuild-easyconfigs with setuptools>=61 by explicitly declaring there are no Python packages (#15206); use x.py to bootstrap Rust so that ......
Read more >
Source code for spacepy.pybats.bats
PbData` that uses standard BATS-R-US variable names, calculate the number density ... Bats2d('spacepy-code/spacepy/pybats/slice2d_species.out') >>> pbs.
Read more >
dbt Changelog - pyup.io
Fix exception caused when running `dbt debug` with BigQuery connections ... Fixed a performance regression that occurred even when a user was not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found