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

Code before:
            'modified_timestamp': 1655490556,
            'modified_date': '20220617',
        }
    }]

    def _real_extract(self, url):
        video_id = self._match_id(url)
        json_data = self._download_json(
            f'https://booyah.live/api/v3/playbacks/{video_id}', video_id,
            headers={'Booyah-Session-key': BooyahBaseIE._BOOYAH_SESSION_KEY})

        formats = []
        for video_data in json_data['playback']['endpoint_list']:
            fmt = {
                'url': video_data.get('stream_url'),
                'ext': 'mp4',
                'resolution': f'{video_data.get("resolution")}p' if video_data else None
            }
            watermark_fmt = {
                'url': video_data.get('download_url'),
                'ext': 'mp4',
                'format_note': 'Watermarked',
                'resolution': f'{video_data.get("resolution")}p' if video_data else None
            }
            formats.append(fmt)
            formats.append(watermark_fmt)

        self._sort_formats(formats)

        comment_json = self._download_json(
            'https://booyah.live/api/v3/playbacks/13887261322952306617/comments/tops', video_id,
            headers={'Booyah-Session-Key': BooyahBaseIE._BOOYAH_SESSION_KEY})

        comment_data = [{
            'id': comment.get('comment_id'),
            'author': comment.get('from_nickname'),
            'author_id': comment.get('from_uid'),
            'author_thumbnail': comment.get('from_thumbnail'),
            'text': comment.get('content'),
            'timestamp': comment.get('create_time'),
            'like_count': comment.get('like_cnt'),
        } for comment in comment_json.get('comment_list')]

        return {
            'id': video_id,
            'title': traverse_obj(json_data, ('playback', 'name')),
            'thumbnail': traverse_obj(json_data, ('playback', 'thumbnail_url')),
            'formats': formats,
            'view_count': traverse_obj(json_data, ('playback', 'views')),
            'like_count': traverse_obj(json_data, ('playback', 'likes')),
            'duration': traverse_obj(json_data, ('playback', 'duration')),

Review comment (suggestion):
You can inline this to avoid the variables

Also I think its better to set height than resolution, it will add the "p" automagically

```python
'height': video.get('resolution')
```

Code after:
            'id': '13887261322952306617',
            'ext': 'mp4',
            'view_count': int,
            'duration': 30,
            'channel_id': 90565760,
            'like_count': int,
            'title': 'Cayendo con estilo 😎',
            'uploader': '♡LɪꜱGΛ​MER​',
            'comment_count': int,
            'uploader_id': '90565760',
            'thumbnail': 'https://resmambet-a.akamaihd.net/mambet-storage/Clip/90565760/90565760-27204374-fba0-409d-9d7b-63a48b5c0e75.jpg',
            'upload_date': '20220617',
            'timestamp': 1655490556,
            'modified_timestamp': 1655490556,
            'modified_date': '20220617',
        }
    }]

    def _real_extract(self, url):
        video_id = self._match_id(url)
        json_data = self._download_json(
            f'https://booyah.live/api/v3/playbacks/{video_id}', video_id,
            headers={'Booyah-Session-key': self._BOOYAH_SESSION_KEY})

        formats = []
        for video_data in json_data['playback']['endpoint_list']:
            formats.extend(({
                'url': video_data.get('stream_url'),
                'ext': 'mp4',
                'height': video_data.get('resolution'),
            }, {
                'url': video_data.get('download_url'),
                'ext': 'mp4',
                'format_note': 'Watermarked',
                'height': video_data.get('resolution'),
                'preference': -10,
            }))
        self._sort_formats(formats)

        return {
            'id': video_id,
            'title': traverse_obj(json_data, ('playback', 'name')),
            'thumbnail': traverse_obj(json_data, ('playback', 'thumbnail_url')),
            'formats': formats,
            'view_count': traverse_obj(json_data, ('playback', 'views')),
            'like_count': traverse_obj(json_data, ('playback', 'likes')),
            'duration': traverse_obj(json_data, ('playback', 'duration')),
            'comment_count': traverse_obj(json_data, ('playback', 'comment_cnt')),
            'channel_id': traverse_obj(json_data, ('playback', 'channel_id')),
            'uploader': traverse_obj(json_data, ('user', 'nickname')),
            'uploader_id': str_or_none(traverse_obj(json_data, ('user', 'uid'))),