Browse Source

[youtube] Improve flash player URL handling

rtmp_test
Philipp Hagemeister 11 years ago
parent
commit
bdde940e90
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      youtube_dl/extractor/youtube.py

+ 6
- 4
youtube_dl/extractor/youtube.py View File

@ -1437,10 +1437,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
encrypted_sig = url_data['s'][0]
if self._downloader.params.get('verbose'):
if age_gate:
player_version = self._search_regex(
r'-(.+)\.swf$',
player_url if player_url else None,
'flash player', fatal=False)
if player_url is None:
player_version = 'unknown'
else:
player_version = self._search_regex(
r'-(.+)\.swf$', player_url,
u'flash player', fatal=False)
player_desc = 'flash player %s' % player_version
else:
player_version = self._search_regex(


Loading…
Cancel
Save