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

Code before:
    _TESTS = [
        {
            'url': 'https://www.thirteen.org/programs/the-woodwrights-shop/carving-away-with-mary-may-tioglz/',
            'info_dict': {
                'id': '3004803331',
                'ext': 'mp4',
                'title': "The Woodwright's Shop - Carving Away with Mary May",
                'description': 'md5:7cbaaaa8b9bcc78bd8f0e31911644e28',
                'duration': 1606,
                'display_id': 'carving-away-with-mary-may-tioglz',
                'chapters': [],
                'thumbnail': 'https://image.pbs.org/video-assets/NcnTxNl-asset-mezzanine-16x9-K0Keoyv.jpg',
            },
        },
        {
            'url': 'http://www.pbs.org/wgbh/pages/frontline/losing-iraq/',
            'md5': '372b12b670070de39438b946474df92f',
            'info_dict': {
                'id': '2365297690',
                'ext': 'mp4',
                'title': 'FRONTLINE - Losing Iraq',
                'description': 'md5:5979a4d069b157f622d02bff62fbe654',
                'duration': 5050,
                'chapters': [
                    {'start_time': 0.0, 'end_time': 1234.0, 'title': 'After Saddam, Chaos'},
                    {'start_time': 1233.0, 'end_time': 1719.0, 'title': 'The Insurgency Takes Root'},
                    {'start_time': 1718.0, 'end_time': 2461.0, 'title': 'A Light Footprint'},
                    {'start_time': 2460.0, 'end_time': 3589.0, 'title': 'The Surge '},
                    {'start_time': 3588.0, 'end_time': 4355.0, 'title': 'The Withdrawal '},
                    {'start_time': 4354.0, 'end_time': 5051.0, 'title': 'ISIS on the March '},
                ],
                'display_id': 'losing-iraq',
                'thumbnail': 'https://image.pbs.org/video-assets/pbs/frontline/138098/images/mezzanine_401.jpg',
            },
        },
        {
            'url': 'http://www.pbs.org/newshour/bb/education-jan-june12-cyberschools_02-23/',
            'md5': 'b19856d7f5351b17a5ab1dc6a64be633',
            'info_dict': {
                'id': '2201174722',
                'ext': 'mp4',
                'title': 'PBS NewsHour - Cyber Schools Gain Popularity, but Quality Questions Persist',
                'description': 'md5:86ab9a3d04458b876147b355788b8781',
                'duration': 801,
            },
        },
        {
            'url': 'http://www.pbs.org/wnet/gperf/dudamel-conducts-verdi-requiem-hollywood-bowl-full-episode/3374/',
            'md5': 'c62859342be2a0358d6c9eb306595978',
            'info_dict': {
                'id': '2365297708',

Review comment (suggestion):
add this as a new test, don't replace the existing test. if the existing test's link is dead, then add a `skip` field to the test dict

Code after:
        {
            'url': 'http://www.pbs.org/tpt/constitution-usa-peter-sagal/watch/a-more-perfect-union/',
            'md5': '173dc391afd361fa72eab5d3d918968d',
            'info_dict': {
                'id': '2365006249',
                'ext': 'mp4',
                'title': 'Constitution USA with Peter Sagal - A More Perfect Union',
                'description': 'md5:31b664af3c65fd07fa460d306b837d00',
                'duration': 3190,
            },
            'skip': 'dead URL',
        },
        {
            'url': 'https://www.thirteen.org/programs/the-woodwrights-shop/carving-away-with-mary-may-tioglz/',
            'info_dict': {
                'id': '3004803331',
                'ext': 'mp4',
                'title': "The Woodwright's Shop - Carving Away with Mary May",
                'description': 'md5:7cbaaaa8b9bcc78bd8f0e31911644e28',
                'duration': 1606,
                'display_id': 'carving-away-with-mary-may-tioglz',
                'chapters': [],
                'thumbnail': 'https://image.pbs.org/video-assets/NcnTxNl-asset-mezzanine-16x9-K0Keoyv.jpg',
            },
        },
        {
            'url': 'http://www.pbs.org/wgbh/pages/frontline/losing-iraq/',
            'md5': '372b12b670070de39438b946474df92f',
            'info_dict': {
                'id': '2365297690',
                'ext': 'mp4',
                'title': 'FRONTLINE - Losing Iraq',
                'description': 'md5:5979a4d069b157f622d02bff62fbe654',
                'duration': 5050,
                'chapters': [
                    {'start_time': 0.0, 'end_time': 1234.0, 'title': 'After Saddam, Chaos'},
                    {'start_time': 1233.0, 'end_time': 1719.0, 'title': 'The Insurgency Takes Root'},
                    {'start_time': 1718.0, 'end_time': 2461.0, 'title': 'A Light Footprint'},
                    {'start_time': 2460.0, 'end_time': 3589.0, 'title': 'The Surge '},
                    {'start_time': 3588.0, 'end_time': 4355.0, 'title': 'The Withdrawal '},
                    {'start_time': 4354.0, 'end_time': 5051.0, 'title': 'ISIS on the March '},
                ],
                'display_id': 'losing-iraq',
                'thumbnail': 'https://image.pbs.org/video-assets/pbs/frontline/138098/images/mezzanine_401.jpg',
            },
        },
        {
            'url': 'http://www.pbs.org/newshour/bb/education-jan-june12-cyberschools_02-23/',
            'md5': 'b19856d7f5351b17a5ab1dc6a64be633',
            'info_dict': {
                'id': '2201174722',