{"record":{"id":"f5d71672b0199c3c","repo":"yt-dlp/yt-dlp","slug":"unexpected-video-format-ext","errorCode":null,"errorMessage":"Unexpected video format {ext}","messagePattern":"Unexpected video format (.+?)","errorType":"exception","errorClass":"ExtractorError","httpStatus":null,"severity":"error","filePath":"yt_dlp/extractor/godresource.py","lineNumber":62,"sourceCode":"\n    def _real_extract(self, url):\n        display_id = self._match_id(url)\n\n        api_data = self._download_json(\n            f'https://api.godresource.com/api/Streams/{display_id}', display_id)\n\n        video_url = api_data['streamUrl']\n        is_live = api_data.get('isLive') or False\n        if (ext := determine_ext(video_url)) == 'm3u8':\n            formats, subtitles = self._extract_m3u8_formats_and_subtitles(\n                video_url, display_id, live=is_live)\n        elif ext == 'mp4':\n            formats, subtitles = [{\n                'url': video_url,\n                'ext': ext,\n            }], {}\n        else:\n            raise ExtractorError(f'Unexpected video format {ext}')\n\n        return {\n            'id': display_id,\n            'formats': formats,\n            'subtitles': subtitles,\n            'title': '',\n            'is_live': is_live,\n            **traverse_obj(api_data, {\n                'title': ('title', {str}),\n                'thumbnail': ('thumbnail', {url_or_none}),\n                'view_count': ('views', {int}),\n                'channel': ('channelName', {str}),\n                'channel_id': ('channelId', {str_or_none}),\n                'timestamp': ('streamDateCreated', {unified_timestamp}),\n                'modified_timestamp': ('streamDataModified', {unified_timestamp}),\n            }),\n        }\n","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/yt-dlp/yt-dlp/blob/81ecd58b1394793e6da9998cc19fdb45657f1685/yt_dlp/extractor/godresource.py#L44-L80","documentation":"Raised when GodResource returns a video in an unexpected container format. The site format changed; update yt-dlp.","triggerScenarios":"Thrown at yt_dlp/extractor/godresource.py:62 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update yt-dlp; the site may have introduced a new format the extractor does not handle.","Report the unexpected format with -v output as a site bug."],"exampleFix":"yt-dlp -vU \"URL\"","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"81ecd58b1394793e6da9998cc19fdb45657f1685","analyzedAt":"2026-08-22T12:21:25.439Z","schemaVersion":2},"datasetVersion":"2026-08-22T14:17:55.899Z"}