Repository: yt-dlp/yt-dlp
File: yt_dlp/extractor/pbs.py (Python)

Code before:
            'info_dict': {
                'id': '3091549094',
                'ext': 'mp4',
                'title': 'PBS NewsHour - Capehart and Johnson on the unusual Biden-Trump debate plans',
                'description': 'Capehart and Johnson on how the Biden-Trump debates could shape the campaign season',
                'display_id': 'capehart-johnson-1715984001',
                'duration': 593,
                'thumbnail': 'https://image.pbs.org/video-assets/mF3oSVn-asset-mezzanine-16x9-QeXjXPy.jpg',
                'chapters': [],
            },
        },
        {
            'url': 'http://player.pbs.org/widget/partnerplayer/2365297708/?start=0&end=0&chapterbar=false&endscreen=false&topbar=true',
            'only_matching': True,
        },
        {
            'url': 'http://watch.knpb.org/video/2365616055/',
            'only_matching': True,
        },
        {
            'url': 'https://player.pbs.org/portalplayer/3004638221/?uid=',
            'only_matching': True,
        },
        {
            'url': 'https://www.pbs.org/video/caregiving',
            'info_dict': {
                'id': '3101776876',
                'ext': 'mp4',
                'title': 'Caregiving - Caregiving',
                'description': 'A documentary revealing America’s caregiving crisis through intimate stories and expert insight.',
                'display_id': 'caregiving',
                'duration': 6783,
                'thumbnail': 'https://image.pbs.org/video-assets/BSrSkcc-asset-mezzanine-16x9-nlcxQts.jpg',
                'chapters': [],
            },
            'params': {
                'skip_download': True,
            },
        },
    ]
    _ERRORS = {
        101: 'We\'re sorry, but this video is not yet available.',
        403: 'We\'re sorry, but this video is not available in your region due to right restrictions.',
        404: 'We are experiencing technical difficulties that are preventing us from playing the video at this time. Please check back again soon.',
        410: 'This video has expired and is no longer available for online streaming.',
    }

    def _real_initialize(self):
        cookie = (self._download_json(
            'http://localization.services.pbs.org/localize/auto/cookie/',
            None, headers=self.geo_verification_headers(), fatal=False) or {}).get('cookie')

Review comment (suggestion):
```suggestion
        {
            # Next.js v13+, see https://github.com/yt-dlp/yt-dlp/issues/13299
            'url': 'https://www.pbs.org/video/caregiving',
```

Code after:
            'info_dict': {
                'id': '3091549094',
                'ext': 'mp4',
                'title': 'PBS NewsHour - Capehart and Johnson on the unusual Biden-Trump debate plans',
                'description': 'Capehart and Johnson on how the Biden-Trump debates could shape the campaign season',
                'display_id': 'capehart-johnson-1715984001',
                'duration': 593,
                'thumbnail': 'https://image.pbs.org/video-assets/mF3oSVn-asset-mezzanine-16x9-QeXjXPy.jpg',
                'chapters': [],
            },
        },
        {
            'url': 'http://player.pbs.org/widget/partnerplayer/2365297708/?start=0&end=0&chapterbar=false&endscreen=false&topbar=true',
            'only_matching': True,
        },
        {
            'url': 'http://watch.knpb.org/video/2365616055/',
            'only_matching': True,
        },
        {
            'url': 'https://player.pbs.org/portalplayer/3004638221/?uid=',
            'only_matching': True,
        },
        {
            # Next.js v13+, see https://github.com/yt-dlp/yt-dlp/issues/13299
            'url': 'https://www.pbs.org/video/caregiving',
            'info_dict': {
                'id': '3101776876',
                'ext': 'mp4',
                'title': 'Caregiving - Caregiving',
                'description': 'A documentary revealing America’s caregiving crisis through intimate stories and expert insight.',
                'display_id': 'caregiving',
                'duration': 6783,
                'thumbnail': 'https://image.pbs.org/video-assets/BSrSkcc-asset-mezzanine-16x9-nlcxQts.jpg',
                'chapters': [],
            },
            'params': {
                'skip_download': True,
            },
        },
    ]
    _ERRORS = {
        101: 'We\'re sorry, but this video is not yet available.',
        403: 'We\'re sorry, but this video is not available in your region due to right restrictions.',
        404: 'We are experiencing technical difficulties that are preventing us from playing the video at this time. Please check back again soon.',
        410: 'This video has expired and is no longer available for online streaming.',
    }

    def _real_initialize(self):
        cookie = (self._download_json(
            'http://localization.services.pbs.org/localize/auto/cookie/',