mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-26 20:22:14 +00:00
[youtube] Improve flash player URL handling
This commit is contained in:
parent
45f4a76dbc
commit
bdde940e90
1 changed files with 6 additions and 4 deletions
|
@ -1437,10 +1437,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
|
||||||
encrypted_sig = url_data['s'][0]
|
encrypted_sig = url_data['s'][0]
|
||||||
if self._downloader.params.get('verbose'):
|
if self._downloader.params.get('verbose'):
|
||||||
if age_gate:
|
if age_gate:
|
||||||
|
if player_url is None:
|
||||||
|
player_version = 'unknown'
|
||||||
|
else:
|
||||||
player_version = self._search_regex(
|
player_version = self._search_regex(
|
||||||
r'-(.+)\.swf$',
|
r'-(.+)\.swf$', player_url,
|
||||||
player_url if player_url else None,
|
u'flash player', fatal=False)
|
||||||
'flash player', fatal=False)
|
|
||||||
player_desc = 'flash player %s' % player_version
|
player_desc = 'flash player %s' % player_version
|
||||||
else:
|
else:
|
||||||
player_version = self._search_regex(
|
player_version = self._search_regex(
|
||||||
|
|
Loading…
Reference in a new issue