Compare commits

...

3 Commits

Author SHA1 Message Date
Dapo Adedire
a51934864f
Merge 79c14205c2 into 176fc2cb00 2024-12-31 16:39:19 +01:00
dirkf
176fc2cb00 [YouTube] Avoid early crash if webpage can't be read
* see issue #33013
2024-12-31 14:51:29 +00:00
Dapo Adedire
79c14205c2
Fix: fix download command for MacOS 2024-09-10 16:34:08 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ This command will update youtube-dl if you have already installed it. See the [p
macOS users can install youtube-dl with [Homebrew](https://brew.sh/): macOS users can install youtube-dl with [Homebrew](https://brew.sh/):
brew install youtube-dl brew install yt-dlp
Or with [MacPorts](https://www.macports.org/): Or with [MacPorts](https://www.macports.org/):

View File

@ -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