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

Code before:

    def _real_extract(self, url):
        mobj = self._match_valid_url(url)
        username = mobj.group('username')
        event_id = mobj.group('id')

        api_url = f'https://apicdn.mixlr.com/v3/channel_view/{username}'
        channel_info = self._download_json(api_url, event_id)
        user_data = channel_info.get('data', {}).get('attributes', {})

        broadcast_data = None
        event_data = None
        included = channel_info.get('included', [])
        for item in included:
            if item.get('type') == 'broadcast':
                broadcast_data = item.get('attributes', {})
            elif item.get('type') == 'event' and item.get('id') == event_id:
                event_data = item.get('attributes', {})

            if broadcast_data and event_data:
                break

        if not broadcast_data or not broadcast_data.get('live', False):
            self.raise_no_formats('No active broadcast found', expected=True)
        if not event_data:
            self.raise_no_formats('No event data found', expected=True)

        streaming_url = broadcast_data.get('progressive_stream_url')
        title = event_data.get('title') or f'Mixlr broadcast by {username}'
        description = event_data.get('description') or broadcast_data.get('description') or ''

        formats = []
        if streaming_url:
            formats.append({
                'url': streaming_url,
                'format_id': 'http',
                'ext': 'mp3',
                'vcodec': 'none',
            })

        if not formats:
            self.raise_no_formats('No formats found', expected=True)

        return {
            'id': event_id,
            'title': title,
            'description': description,
            'uploader': username,
            'uploader_id': user_data.get('id'),
            'uploader_url': f'https://{username}.mixlr.com',
            'thumbnail': user_data.get('avatar_full_url') or user_data.get('avatar_url'),

Review comment (suggestion):
I would just use the dedicated event api to only get returned that one event and broadcast
```suggestion
        broadcast_info = self._download_json(
            f'https://api.mixlr.com/v3/channels/{username}/events/{event_id}', event_id)
```

Code after:
            'release_timestamp': 1751943764,
            'release_date': '20250708',
            'live_status': 'is_live',
        },
    }, {
        'url': 'https://brcountdown.mixlr.com/events/4395480',
        'info_dict': {
            'id': '4395480',
            'ext': 'aac',
            'title': r're:Beats Revolution Countdown Episodio 461 \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
            'description': 'md5:5cacd089723f7add3f266bd588315bb3',
            'uploader': 'brcountdown',
            'like_count': int,
            'thumbnail': r're:https://imagecdn\.mixlr\.com/cdn-cgi/image/[^/?#]+/c48727a59f690b87a55d47d123ba0d6d.jpg',
            'timestamp': 1752354007,
            'upload_date': '20250712',
            'release_timestamp': 1752354000,
            'release_date': '20250712',
            'live_status': 'is_live',
        },
    }, {
        'url': 'https://www.brcountdown.mixlr.com/events/4395480',
        'only_matching': True,
    }]

    def _real_extract(self, url):
        username, event_id = self._match_valid_url(url).group('username', 'id')

        broadcast_info = self._download_json(
            f'https://api.mixlr.com/v3/channels/{username}/events/{event_id}', event_id)

        formats = []
        format_url = traverse_obj(
            broadcast_info, ('included', 0, 'attributes', 'progressive_stream_url', {url_or_none}))
        if format_url:
            urlh = self._request_webpage(
                HEADRequest(format_url), event_id, fatal=False, note='Checking stream')
            if urlh and urlh.status == 200:
                ext = urlhandle_detect_ext(urlh)
                if ext == 'octet-stream':
                    self.report_warning(
                        'The server did not return a valid file extension for the stream URL. '
                        'Assuming an mp3 stream; postprocessing may fail if this is incorrect')
                    ext = 'mp3'
                formats.append({
                    'url': format_url,
                    'ext': ext,
                    'vcodec': 'none',
                })

        release_timestamp = traverse_obj(