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

Code before:
            video_url = traverse_obj(video_data, ('video', 'meta', 'mp4_url'), 'mp4_url')
            if video_url:
                resolutions = {'1080': '1920', '720': '1280', '540': '960', '360': '640', '234': '416'}
                height = url_basename(video_url).split('-')[1].split('p')[0]
                formats.append({
                    'url': video_url,
                    'ext': 'mp4',
                    'width': int_or_none(resolutions.get(height)),
                    'height': int_or_none(height),
                    'format_id': f'http-{height}',
                })

            entry_protocol = 'm3u8_native'
            query = {
                'mbr': 'true',
                'assetTypes': 'LegacyRelease',
                'fwsitesection': fw_ssid,
                'fwNetworkID': fw_network_id,
                'format': 'redirect',
                'manifest': 'm3u',
                'Tracking': 'true',
                'Embedded': 'true',
                'formats': 'MPEG4',
            }
            info = {
                'description': description,
                'upload_date': str_or_none(unified_strdate(date_string)),
                'timestamp': int_or_none(unified_timestamp(date_string)),
            }

        if not player_id:
            raise ExtractorError(
                'No video player ID or livestream player ID found in webpage', expected=True)

        headers = {'Origin': f'https://www.{channel}.com'}
        manifest, urlh = self._download_webpage_handle(
            f'https://link.theplatform.com/s/{pdk_acct}/{player_id}', video_id,
            headers=headers, query=query, note='Downloading manifest')
        if live:
            manifest_url = self._search_regex(r'<video src="([^"]*)', manifest, 'manifest URL')
        else:
            manifest_url = urlh.geturl()

        formats.extend(self._extract_m3u8_formats(
            manifest_url, video_id, 'mp4', entry_protocol=entry_protocol, headers=headers,
            m3u8_id='hls', fatal=live, live=live, errnote='No HLS formats found'))
        self._sort_formats(formats)

        return {
            'id': str_or_none(video_id),
            'title': str_or_none(title),

Review comment (suggestion):
```suggestion
                'description': traverse_obj(video_data, 'summary', 'excerpt', 'video_hero_text'),
```

Code after:
                height = url_basename(video_url).split('-')[1].split('p')[0]
                formats.append({
                    'url': video_url,
                    'ext': 'mp4',
                    'width': int_or_none(self._RESOLUTIONS.get(height)),
                    'height': int_or_none(height),
                    'format_id': f'http-{height}',
                })

            query = {
                'mbr': 'true',
                'assetTypes': 'LegacyRelease',
                'fwsitesection': fw_ssid,
                'fwNetworkID': fw_network_id,
                'format': 'redirect',
                'manifest': 'm3u',
                'Tracking': 'true',
                'Embedded': 'true',
                'formats': 'MPEG4',
            }
            info = {
                'title': video_data.get('title') or traverse_obj(
                    nbc_data, ('dataLayer', 'contenttitle'), ('dataLayer', 'title'),
                    ('dataLayer', 'adobe', 'prop22'), ('dataLayer', 'id')),
                'description': traverse_obj(video_data, 'summary', 'excerpt', 'video_hero_text'),
                'upload_date': str_or_none(unified_strdate(date_string)),
                'timestamp': int_or_none(unified_timestamp(date_string)),
            }

        if not player_id:
            raise ExtractorError(
                'No video player ID or livestream player ID found in webpage', expected=True)

        headers = {'Origin': f'https://www.{channel}.com'}
        manifest, urlh = self._download_webpage_handle(
            f'https://link.theplatform.com/s/{pdk_acct}/{player_id}', video_id,
            headers=headers, query=query, note='Downloading manifest')
        if live:
            manifest_url = self._search_regex(r'<video src="([^"]*)', manifest, 'manifest URL')
        else:
            manifest_url = urlh.geturl()

        formats.extend(self._extract_m3u8_formats(
            manifest_url, video_id, 'mp4', headers=headers, m3u8_id='hls',
            fatal=live, live=live, errnote='No HLS formats found'))
        self._sort_formats(formats)

        return {
            'id': str_or_none(video_id),
            'channel': channel,
            'uploader': str_or_none(nbc_data.get('on_air_name')),