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

Code before:
        if video_data.get('mpx_is_livestream') == '1':
            live = True
            player_id = traverse_obj(
                video_data, 'mpx_m3upid', ('video', 'meta', 'mpx_m3upid'), 'mpx_pid',
                ('video', 'meta', 'mpx_pid'), 'pid_streaming_web_medium')
            title = f'{channel} livestream'
            entry_protocol = 'm3u8'
            query = {
                'mbr': 'true',
                'assetTypes': 'LegacyRelease',
                'fwsitesection': fw_ssid,
                'fwNetworkID': fw_network_id,
                'pprofile': 'ots_desktop_html',
                'sensitive': 'false',
                'w': '1920',
                'h': '1080',
                'rnd': '1660303',
                'mode': 'LIVE',
                'format': 'SMIL',
                'tracking': 'true',
                'formats': 'M3U+none,MPEG-DASH+none,MPEG4,MP3',
                'vpaid': 'script',
                'schema': '2.0',
                'SDK': 'PDK+6.1.3',
            }
            info = {}

        else:
            live = False
            player_id = traverse_obj(
                video_data, ('video', 'meta', 'pid_streaming_web_high'), 'pid_streaming_web_high',
                ('video', 'meta', 'mpx_pid'), 'mpx_pid')

            title = video_data.get('title')
            if not title:
                title = traverse_obj(
                    nbc_data, ('dataLayer', 'contenttitle'), ('dataLayer', 'title'),
                    ('dataLayer', 'adobe', 'prop22'), ('dataLayer', 'id'))
            description = traverse_obj(video_data, 'summary', 'excerpt', 'video_hero_text')

            date_string = traverse_obj(video_data, 'date_string', 'date_gmt')
            if date_string:
                date_string = self._search_regex(
                    r'datetime="([^"]+)"', date_string, 'date string', fatal=False)
            else:
                date_string = traverse_obj(
                    nbc_data, ('dataLayer', 'adobe', 'prop70'), ('dataLayer', 'adobe', 'eVar70'),
                    ('dataLayer', 'adobe', 'eVar59'))

            video_url = traverse_obj(video_data, ('video', 'meta', 'mp4_url'), 'mp4_url')
            if video_url:

Review comment (suggestion):
Why not
```suggestion
            info = {
                'title': f'{channel} livestream'
            }
```
same below

Code after:
        video_data.update(self._parse_json(self._html_search_regex(
            r'data-meta="([^"]*)"', webpage, 'metadata', default='{}'), video_id))

        formats = []

        if video_data.get('mpx_is_livestream') == '1':
            live = True
            player_id = traverse_obj(
                video_data, 'mpx_m3upid', ('video', 'meta', 'mpx_m3upid'), 'mpx_pid',
                ('video', 'meta', 'mpx_pid'), 'pid_streaming_web_medium')
            query = {
                'mbr': 'true',
                'assetTypes': 'LegacyRelease',
                'fwsitesection': fw_ssid,
                'fwNetworkID': fw_network_id,
                'pprofile': 'ots_desktop_html',
                'sensitive': 'false',
                'w': '1920',
                'h': '1080',
                'rnd': '1660303',
                'mode': 'LIVE',
                'format': 'SMIL',
                'tracking': 'true',
                'formats': 'M3U+none,MPEG-DASH+none,MPEG4,MP3',
                'vpaid': 'script',
                'schema': '2.0',
                'SDK': 'PDK+6.1.3',
            }
            info = {
                'title': f'{channel} livestream',
            }

        else:
            live = False
            player_id = traverse_obj(
                video_data, ('video', 'meta', 'pid_streaming_web_high'), 'pid_streaming_web_high',
                ('video', 'meta', 'mpx_pid'), 'mpx_pid')

            date_string = traverse_obj(video_data, 'date_string', 'date_gmt')
            if date_string:
                date_string = self._search_regex(
                    r'datetime="([^"]+)"', date_string, 'date string', fatal=False)
            else:
                date_string = traverse_obj(
                    nbc_data, ('dataLayer', 'adobe', 'prop70'), ('dataLayer', 'adobe', 'eVar70'),
                    ('dataLayer', 'adobe', 'eVar59'))

            video_url = traverse_obj(video_data, ('video', 'meta', 'mp4_url'), 'mp4_url')
            if video_url:
                height = url_basename(video_url).split('-')[1].split('p')[0]
                formats.append({