{"record":{"id":"8485c41403811524","repo":"ytdl-org/youtube-dl","slug":"s-said-s-8485c4","errorCode":null,"errorMessage":"%s said: %s","messagePattern":"%s said: %s","errorType":"exception","errorClass":"ExtractorError","httpStatus":null,"severity":"error","filePath":"youtube_dl/extractor/cspan.py","lineNumber":184,"sourceCode":"                video_id = self._search_regex(\n                    r'jwsetup\\.clipprog\\s*=\\s*(\\d+);',\n                    webpage, 'jwsetup program id', default=None)\n                if video_id:\n                    video_type = 'program'\n        if video_type is None or video_id is None:\n            error_message = get_element_by_class('VLplayer-error-message', webpage)\n            if error_message:\n                raise ExtractorError(error_message)\n            raise ExtractorError('unable to find video id and type')\n\n        def get_text_attr(d, attr):\n            return d.get(attr, {}).get('#text')\n\n        data = self._download_json(\n            'http://www.c-span.org/assets/player/ajax-player.php?os=android&html5=%s&id=%s' % (video_type, video_id),\n            video_id)['video']\n        if data['@status'] != 'Success':\n            raise ExtractorError('%s said: %s' % (self.IE_NAME, get_text_attr(data, 'error')), expected=True)\n\n        doc = self._download_xml(\n            'http://www.c-span.org/common/services/flashXml.php?%sid=%s' % (video_type, video_id),\n            video_id)\n\n        description = self._html_search_meta('description', webpage)\n\n        title = find_xpath_attr(doc, './/string', 'name', 'title').text\n        thumbnail = find_xpath_attr(doc, './/string', 'name', 'poster').text\n\n        files = data['files']\n        capfile = get_text_attr(data, 'capfile')\n\n        entries = []\n        for partnum, f in enumerate(files):\n            formats = []\n            for quality in f.get('qualities', []):\n                formats.append({","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/ytdl-org/youtube-dl/blob/956b8c585591b401a543e409accb163eeaaa1193/youtube_dl/extractor/cspan.py#L166-L202","documentation":"Error \"%s said: %s\" thrown in ytdl-org/youtube-dl.","triggerScenarios":"Thrown at youtube_dl/extractor/cspan.py:184 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the C-SPAN error message; verify the URL is correct and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"956b8c585591b401a543e409accb163eeaaa1193","analyzedAt":"2026-08-14T18:59:47.863Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}