mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-01-08 17:05:37 +00:00
[YouTube] Avoid early crash if webpage can't be read
* see issue #33013
This commit is contained in:
parent
d55d1f423d
commit
176fc2cb00
1 changed files with 1 additions and 1 deletions
|
@ -1951,7 +1951,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
pb_context = {'html5Preference': 'HTML5_PREF_WANTS'}
|
pb_context = {'html5Preference': 'HTML5_PREF_WANTS'}
|
||||||
|
|
||||||
player_url = self._extract_player_url(webpage)
|
player_url = self._extract_player_url(webpage)
|
||||||
ytcfg = self._extract_ytcfg(video_id, webpage)
|
ytcfg = self._extract_ytcfg(video_id, webpage or '')
|
||||||
sts = self._extract_signature_timestamp(video_id, player_url, ytcfg)
|
sts = self._extract_signature_timestamp(video_id, player_url, ytcfg)
|
||||||
if sts:
|
if sts:
|
||||||
pb_context['signatureTimestamp'] = sts
|
pb_context['signatureTimestamp'] = sts
|
||||||
|
|
Loading…
Reference in a new issue