{"record":{"id":"065375144f8fbf1d","repo":"ytdl-org/youtube-dl","slug":"could-not-find-player-definition","errorCode":null,"errorMessage":"Could not find player definition","messagePattern":"Could not find player definition","errorType":"exception","errorClass":"ExtractorError","httpStatus":null,"severity":"error","filePath":"youtube_dl/extractor/nowness.py","lineNumber":34,"sourceCode":"class NownessBaseIE(InfoExtractor):\n    def _extract_url_result(self, post):\n        if post['type'] == 'video':\n            for media in post['media']:\n                if media['type'] == 'video':\n                    video_id = media['content']\n                    source = media['source']\n                    if source == 'brightcove':\n                        player_code = self._download_webpage(\n                            'http://www.nowness.com/iframe?id=%s' % video_id, video_id,\n                            note='Downloading player JavaScript',\n                            errnote='Unable to download player JavaScript')\n                        bc_url = BrightcoveLegacyIE._extract_brightcove_url(player_code)\n                        if bc_url:\n                            return self.url_result(bc_url, BrightcoveLegacyIE.ie_key())\n                        bc_url = BrightcoveNewIE._extract_url(self, player_code)\n                        if bc_url:\n                            return self.url_result(bc_url, BrightcoveNewIE.ie_key())\n                        raise ExtractorError('Could not find player definition')\n                    elif source == 'vimeo':\n                        return self.url_result('http://vimeo.com/%s' % video_id, 'Vimeo')\n                    elif source == 'youtube':\n                        return self.url_result(video_id, 'Youtube')\n                    elif source == 'cinematique':\n                        # youtube-dl currently doesn't support cinematique\n                        # return self.url_result('http://cinematique.com/embed/%s' % video_id, 'Cinematique')\n                        pass\n\n    def _api_request(self, url, request_path):\n        display_id = self._match_id(url)\n        request = sanitized_Request(\n            'http://api.nowness.com/api/' + request_path % display_id,\n            headers={\n                'X-Nowness-Language': 'zh-cn' if 'cn.nowness.com' in url else 'en-us',\n            })\n        return display_id, self._download_json(request, display_id)\n","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/ytdl-org/youtube-dl/blob/956b8c585591b401a543e409accb163eeaaa1193/youtube_dl/extractor/nowness.py#L16-L52","documentation":"Error \"Could not find player definition\" thrown in ytdl-org/youtube-dl.","triggerScenarios":"Thrown at youtube_dl/extractor/nowness.py:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update youtube-dl; the player definition could not be located on the page."],"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-15T22:17:37.221Z"}