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

Code before:
        if form:
            password = self.get_param('videopassword')
            if not password:
                raise ExtractorError(
                    'This video is protected by a passcode, use the --video-password option', expected=True)
            is_meeting = form.get('useWhichPasswd') == 'meeting'
            validation = self._download_json(
                base_url + 'rec/validate%s_passwd' % ('_meet' if is_meeting else ''),
                play_id, 'Validating passcode', 'Wrong passcode', data=urlencode_postdata({
                    'id': form[('meet' if is_meeting else 'file') + 'Id'],
                    'passwd': password,
                    'action': form.get('action'),
                }))
            if not validation.get('status'):
                raise ExtractorError(validation['errorMessage'], expected=True)
            webpage = self._download_webpage(url, play_id)

        data = self._parse_json(self._search_regex(
            r'(?s)window\.__data__\s*=\s*({.+?});',
            webpage, 'data'), play_id, js_to_json)

        info = self._download_json(
            base_url + 'nws/recording/1.0/play/info/' + data['fileId'], play_id
        )

        result = info.get('result', {})

        subtitles = {}
        for _type in ('transcript', 'cc', 'chapter'):
            if result.get('%sUrl' % _type):
                subtitles[_type] = [{
                    'url': urljoin(base_url, result['%sUrl' % _type]),
                    'ext': 'vtt',
                }]

        formats = []

        if result.get('viewMp4Url'):
            formats.append({
                'format_note': 'Camera stream',
                'url': str_or_none(result.get('viewMp4Url')),
                'width': int_or_none(result.get('viewResolvtions')[0]),
                'height': int_or_none(result.get('viewResolvtions')[1]),
                'format_id': str_or_none(result.get('recording', {}).get('id')),
                'ext': 'mp4',
                'filesize_approx': parse_filesize(result.get('recording', {}).get('fileSizeInMB')),
                'preference': 0
            })

        if result.get('shareMp4Url'):
            formats.append({

Review comment (suggestion):
```suggestion
        data = self._download_json(
            f'{base_url}nws/recording/1.0/play/info/{data["fileId"]}', play_id)['result']
```

Code after:
            form = None
        if form:
            password = self.get_param('videopassword')
            if not password:
                raise ExtractorError(
                    'This video is protected by a passcode, use the --video-password option', expected=True)
            is_meeting = form.get('useWhichPasswd') == 'meeting'
            validation = self._download_json(
                base_url + 'rec/validate%s_passwd' % ('_meet' if is_meeting else ''),
                play_id, 'Validating passcode', 'Wrong passcode', data=urlencode_postdata({
                    'id': form[('meet' if is_meeting else 'file') + 'Id'],
                    'passwd': password,
                    'action': form.get('action'),
                }))
            if not validation.get('status'):
                raise ExtractorError(validation['errorMessage'], expected=True)
            webpage = self._download_webpage(url, play_id)

        data = self._parse_json(self._search_regex(
            r'(?s)window\.__data__\s*=\s*({.+?});',
            webpage, 'data'), play_id, js_to_json)

        data = self._download_json(
            f'{base_url}nws/recording/1.0/play/info/{data["fileId"]}', play_id)['result']

        subtitles = {}
        for _type in ('transcript', 'cc', 'chapter'):
            if data.get('%sUrl' % _type):
                subtitles[_type] = [{
                    'url': urljoin(base_url, data['%sUrl' % _type]),
                    'ext': 'vtt',
                }]

        formats = []

        if data.get('viewMp4Url'):
            formats.append({
                'format_note': 'Camera stream',
                'url': str_or_none(data.get('viewMp4Url')),
                'width': int_or_none(traverse_obj(data, ('viewResolvtions', 0))),
                'height': int_or_none(traverse_obj(data, ('viewResolvtions', 1))),
                'format_id': str_or_none(traverse_obj(data, ('recording', 'id'))),
                'ext': 'mp4',
                'filesize_approx': parse_filesize(str_or_none(traverse_obj(data, ('recording', 'fileSizeInMB')))),
                'preference': 0
            })

        if data.get('shareMp4Url'):
            formats.append({
                'format_note': 'Screen share stream',
                'url': str_or_none(data.get('shareMp4Url')),