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

Code before:
            'ext': 'mp4',
            'title': str,
            'upload_date': str,
            'description': str,
            'thumbnail': r're:^https?://.*\.jpg$',
            'alt-title': str,
            'uploader': str,
            'channel': str,
            'uploader_id': str,
            'channel_id': str,
            'uploader_url': r're:^https?://.*',
            'channel_url': r're:^https?://.*',
            'timestamp': int,
            'like_count': int,
            'repost_count': None,
            'comment_count': int,
            'webpage_url': r're:^https?://.*',
            'tags': 'count:2',
            'subtitles': dict,
            'comments': list,
        },
    }]

    def _real_extract(self, url):
        video_id = self._match_id(url)
        handle = self._search_regex(self._VALID_URL, url, 'handle', group='handle')

        resolve_url = 'https://bsky.social/xrpc/com.atproto.identity.resolveHandle'
        did = self._download_json(resolve_url, video_id, query={'handle': handle}, expected_status=200).get('did')

        api_url = 'https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread'
        headers = {'Content-Type': 'application/json'}
        depth = 80 if self.get_param('write_comments') else 0  # getPostThread default
        params = {'uri': f'at://{did}/app.bsky.feed.post/{video_id}', 'depth': depth}
        meta = self._download_json(api_url, video_id, headers=headers, query=params, expected_status=200)

        m3u8_url = traverse_obj(meta, ('thread', 'post', 'embed', 'playlist'))
        formats, subs = self._extract_m3u8_formats_and_subtitles(
            m3u8_url, video_id, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False,
            note='Downloading HD m3u8 information', errnote='Unable to download HD m3u8 information')
        subtitles = self._merge_subtitles(subs)
        uploader = traverse_obj(meta, ('thread', 'post', 'author', 'displayName'))
        description = traverse_obj(meta, ('thread', 'post', 'record', 'text'))

        formatted_replies = []
        replies = traverse_obj(meta, ('thread', 'replies'), expected_type=list)
        if replies:
            for reply in replies:

                parent_uri = traverse_obj(reply, ('post', 'record', 'reply', 'parent', 'uri'))
                root_uri = traverse_obj(reply, ('post', 'record', 'reply', 'root', 'uri'))

Review comment (suggestion):
```suggestion
        handle, video_id = self._match_valid_url(url).groups()
```

Code after:
            'tags': [],
            'subtitles': {
                'en': 'mincount:1',
            },
        },
    }, {
        'url': 'https://main.bsky.dev/profile/souris.moe/post/3l4qhp7bcs52c',
        'md5': '5f2df8c200b5633eb7fb2c984d29772f',
        'info_dict': {
            'id': '3l4qhp7bcs52c',
            'ext': 'mp4',
            'uploader': 'souris',
            'uploader_id': 'souris.moe',
            'uploader_url': 'https://bsky.app/profile/souris.moe',
            'channel_id': 'did:plc:tj7g244gl5v6ai6cm4f4wlqp',
            'channel_url': 'https://bsky.app/profile/did:plc:tj7g244gl5v6ai6cm4f4wlqp',
            'thumbnail': r're:https://video.bsky.app/watch/.*\.jpg$',
            'title': 'Bluesky video #3l4qhp7bcs52c',
            'upload_date': '20240922',
            'timestamp': 1727003838,
            'like_count': int,
            'repost_count': int,
            'comment_count': int,
            'tags': [],
        },
    }, {
        'url': 'https://bsky.app/profile/de1.pds.tentacle.expert/post/3l3w4tnezek2e',
        'md5': '1af9c7fda061cf7593bbffca89e43d1c',
        'info_dict': {
            'id': '3l3w4tnezek2e',
            'ext': 'mp4',
            'uploader': 'clean',
            'uploader_id': 'de1.pds.tentacle.expert',
            'uploader_url': 'https://bsky.app/profile/de1.pds.tentacle.expert',
            'channel_id': 'did:web:de1.tentacle.expert',
            'channel_url': 'https://bsky.app/profile/did:web:de1.tentacle.expert',
            'thumbnail': r're:https://video.bsky.app/watch/.*\.jpg$',
            'title': 'Bluesky video #3l3w4tnezek2e',
            'upload_date': '20240911',
            'timestamp': 1726098823,
            'like_count': int,
            'repost_count': int,
            'comment_count': int,
            'tags': [],
        },
    }, {
        'url': 'https://bsky.app/profile/yunayuispink.bsky.social/post/3l7gqcfes742o',
        'info_dict': {
            'id': 'XxK3t_5V3ao',
            'ext': 'mp4',
            'uploader': 'yunayu',