yt-dlp/yt-dlp · error · ExtractorError

Unexpected video format {ext}

Error message

Unexpected video format {ext}

What it means

Raised when GodResource returns a video in an unexpected container format. The site format changed; update yt-dlp.

Source

Thrown at yt_dlp/extractor/godresource.py:62

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

        api_data = self._download_json(
            f'https://api.godresource.com/api/Streams/{display_id}', display_id)

        video_url = api_data['streamUrl']
        is_live = api_data.get('isLive') or False
        if (ext := determine_ext(video_url)) == 'm3u8':
            formats, subtitles = self._extract_m3u8_formats_and_subtitles(
                video_url, display_id, live=is_live)
        elif ext == 'mp4':
            formats, subtitles = [{
                'url': video_url,
                'ext': ext,
            }], {}
        else:
            raise ExtractorError(f'Unexpected video format {ext}')

        return {
            'id': display_id,
            'formats': formats,
            'subtitles': subtitles,
            'title': '',
            'is_live': is_live,
            **traverse_obj(api_data, {
                'title': ('title', {str}),
                'thumbnail': ('thumbnail', {url_or_none}),
                'view_count': ('views', {int}),
                'channel': ('channelName', {str}),
                'channel_id': ('channelId', {str_or_none}),
                'timestamp': ('streamDateCreated', {unified_timestamp}),
                'modified_timestamp': ('streamDataModified', {unified_timestamp}),
            }),
        }

View on GitHub (pinned to 81ecd58b13)

Solutions

  1. Update yt-dlp; the site may have introduced a new format the extractor does not handle.
  2. Report the unexpected format with -v output as a site bug.

Example fix

yt-dlp -vU "URL"

When it happens

Trigger: Thrown at yt_dlp/extractor/godresource.py:62 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of yt-dlp/yt-dlp@81ecd58b13 (2026-08-22). Data as JSON: /api/errors/f5d71672b0199c3c. Report an issue: GitHub.