Update yt_dlp/extractor/youtube/_video.py

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
pull/14430/head
sepro 2 days ago committed by GitHub
parent 862886793e
commit 21cd177ce3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2026,8 +2026,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
return None, None return None, None
return player_js_version.split('@') return player_js_version.split('@')
def _construct_player_url(self, player_id, varient): def _construct_player_url(self, player_id, variant):
return f'/s/player/{player_id}/{self._PLAYER_JS_VARIANT_MAP[varient]}' return f'/s/player/{player_id}/{self._PLAYER_JS_VARIANT_MAP[variant]}'
def _extract_player_url(self, *ytcfgs, webpage=None): def _extract_player_url(self, *ytcfgs, webpage=None):
player_url = traverse_obj( player_url = traverse_obj(

Loading…
Cancel
Save