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

Code before:
    }

    def _real_extract(self, url):
        video_id = self._match_id(url)

        metadata = self._download_json(
            'https://app.veo.co/api/app/matches/%s' % video_id, video_id)

        video_data = self._download_json(
            'https://app.veo.co/api/app/matches/%s/videos' % video_id, video_id, 'Downloading video data')

        title = metadata.get('title')
        thumbnail = url_or_none(metadata.get('thumbnail'))

        timestamp = unified_timestamp(metadata.get('created'))
        duration = int_or_none(metadata.get('duration'))
        view_count = int_or_none(metadata.get('view_count'))

        formats = []
        for fmt in video_data:
            mimetype = fmt.get('mime_type')
            # skip configuration file for panoramic video
            if mimetype == 'video/mp2t':
                continue
            height = int_or_none(fmt.get('height'))
            bitrate = int_or_none(fmt.get('bit_rate'))
            render_type = fmt.get('render_type')
            formats.append({
                'url': url_or_none(fmt.get('url')),
                'format_id': '%s-%sp' % (render_type, height),
                'ext': mimetype2ext(mimetype),
                'width': int_or_none(fmt.get('width')),
                'height': height,
                'vbr': bitrate / 1000 if bitrate else None
            })

        self._sort_formats(formats)

        return {
            'id': video_id,
            'title': title,
            'formats': formats,
            'thumbnail': thumbnail,
            'timestamp': timestamp,
            'view_count': view_count,
            'duration': duration
        }


Review comment (suggestion):
```suggestion
            bitrate = int_or_none(fmt.get('bit_rate'), scale=1000)
```
`bitrate / 1000 if bitrate else None` below can be removed

Code after:
    }]

    def _real_extract(self, url):
        video_id = self._match_id(url)

        metadata = self._download_json(
            'https://app.veo.co/api/app/matches/%s' % video_id, video_id)

        video_data = self._download_json(
            'https://app.veo.co/api/app/matches/%s/videos' % video_id, video_id, 'Downloading video data')

        title = metadata.get('title')
        thumbnail = url_or_none(metadata.get('thumbnail'))

        timestamp = unified_timestamp(metadata.get('created'))
        duration = int_or_none(metadata.get('duration'))
        view_count = int_or_none(metadata.get('view_count'))

        formats = []
        for fmt in video_data:
            mimetype = fmt.get('mime_type')
            # skip configuration file for panoramic video
            if mimetype == 'video/mp2t':
                continue
            height = int_or_none(fmt.get('height'))
            bitrate = int_or_none(fmt.get('bit_rate'), scale=1000)
            render_type = fmt.get('render_type')
            formats.append({
                'url': url_or_none(fmt.get('url')),
                'format_id': '%s-%sp' % (render_type, height),
                'ext': mimetype2ext(mimetype),
                'width': int_or_none(fmt.get('width')),
                'height': height,
                'vbr': bitrate
            })

        self._sort_formats(formats)

        return {
            'id': video_id,
            'title': title,
            'formats': formats,
            'thumbnail': thumbnail,
            'timestamp': timestamp,
            'view_count': view_count,
            'duration': duration
        }