{"record":{"id":"955c44a3420f8849","repo":"ytdl-org/youtube-dl","slug":"s-said-there-s-something-wrong-in-the-video","errorCode":null,"errorMessage":"%s said: There's something wrong in the video.","messagePattern":"(.+?) said: There's something wrong in the video\\.","errorType":"exception","errorClass":"ExtractorError","httpStatus":null,"severity":"error","filePath":"youtube_dl/extractor/sohu.py","lineNumber":114,"sourceCode":"                base_data_url + vid_id, video_id,\n                'Downloading JSON data for %s' % vid_id,\n                headers=self.geo_verification_headers())\n\n        mobj = re.match(self._VALID_URL, url)\n        video_id = mobj.group('id')\n        mytv = mobj.group('mytv') is not None\n\n        webpage = self._download_webpage(url, video_id)\n\n        title = re.sub(r' - 搜狐视频$', '', self._og_search_title(webpage))\n\n        vid = self._html_search_regex(\n            r'var vid ?= ?[\"\\'](\\d+)[\"\\']',\n            webpage, 'video path')\n        vid_data = _fetch_data(vid, mytv)\n        if vid_data['play'] != 1:\n            if vid_data.get('status') == 12:\n                raise ExtractorError(\n                    '%s said: There\\'s something wrong in the video.' % self.IE_NAME,\n                    expected=True)\n            else:\n                self.raise_geo_restricted(\n                    '%s said: The video is only licensed to users in Mainland China.' % self.IE_NAME)\n\n        formats_json = {}\n        for format_id in ('nor', 'high', 'super', 'ori', 'h2644k', 'h2654k'):\n            vid_id = vid_data['data'].get('%sVid' % format_id)\n            if not vid_id:\n                continue\n            vid_id = compat_str(vid_id)\n            formats_json[format_id] = vid_data if vid == vid_id else _fetch_data(vid_id, mytv)\n\n        part_count = vid_data['data']['totalBlocks']\n\n        playlist = []\n        for i in range(part_count):","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/ytdl-org/youtube-dl/blob/956b8c585591b401a543e409accb163eeaaa1193/youtube_dl/extractor/sohu.py#L96-L132","documentation":"SohuIE checks the _fetch_data result: when vid_data['play'] != 1 and vid_data['status'] == 12, it raises '<Sohu> said: There's something wrong in the video.' as an expected error. Status 12 is Sohu's server-side flag for a broken/unavailable video (removed or erroring asset), distinct from the geo-restriction branch right below it.","triggerScenarios":"Extracting a tv.sohu.com/mytv.sohu.com URL whose video info API returns play != 1 with status == 12 - typically deleted videos or assets Sohu's backend has flagged as faulty. If status is not 12, the same play != 1 condition routes to raise_geo_restricted instead.","commonSituations":"Drama/variety-show episodes removed after licensing windows expired (common on Sohu); videos taken down during content reviews; users outside mainland China hitting this and misreading it as geo-blocking when their video is actually deleted.","solutions":["Open the URL in a browser - Sohu shows its own 'video unavailable' page for status-12 assets.","Search Sohu for the episode under its current listing; re-licensed titles often get new ids.","If the video plays in a browser while outside mainland China, it is not status 12 - update yt-dlp, since branch logic may have changed.","Find the content on another platform."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try:\n    extract(url)\nexcept ExtractorError as e:\n    if 'something wrong in the video' in str(e):\n        mark_asset_deleted(video_id)\n    elif 'licensed to users in Mainland China' in str(e):\n        retry_via_cn_proxy()\n    else:\n        raise","preventionTips":["Distinguish status-12 (deleted) from geo errors - only the latter benefit from a CN VPN.","Verify Sohu links play in a browser before batch runs.","Expect licensing-window expiry on dramas; prefer fresh URLs."],"tags":["sohu","dead-link","api-error","extractor"],"backgroundTag":null,"analyzedSha":"956b8c585591b401a543e409accb163eeaaa1193","analyzedAt":"2026-08-14T18:59:47.863Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}