embed_webpage = self._download_webpage(
embed_url, video_id, 'Downloading embed webpage')
jsplayer_url_json = self._search_regex(
- ASSETS_RE, embed_webpage, 'JS player URL')
+ ASSETS_RE, embed_webpage, 'JS player URL (2)', default=None)
+
+ if not jsplayer_url_json:
+ jsplayer_url_json = self._search_regex(
+ r'"WEB_PLAYER_CONTEXT_CONFIG_ID_EMBEDDED_PLAYER":.+?"jsUrl":\s*("[^"]+")',
+ embed_webpage,
+ 'JS player URL')
player_url = json.loads(jsplayer_url_json)
if player_url is None: