mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-24 19:22:52 +08:00
[youtube] Don't search the flash player version for videos with age gate activated
This commit is contained in:
parent
f3f34c5b0f
commit
4a67aafb7e
@ -783,10 +783,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
|
|||||||
if self._downloader.params.get('verbose'):
|
if self._downloader.params.get('verbose'):
|
||||||
s = url_data['s'][0]
|
s = url_data['s'][0]
|
||||||
if age_gate:
|
if age_gate:
|
||||||
player_version = self._search_regex(r'ad3-(.+?)\.swf',
|
player = 'flash player'
|
||||||
video_info['ad3_module'][0] if 'ad3_module' in video_info else 'NOT FOUND',
|
|
||||||
'flash player', fatal=False)
|
|
||||||
player = 'flash player %s' % player_version
|
|
||||||
else:
|
else:
|
||||||
player = u'html5 player %s' % self._search_regex(r'html5player-(.+?)\.js', video_webpage,
|
player = u'html5 player %s' % self._search_regex(r'html5player-(.+?)\.js', video_webpage,
|
||||||
'html5 player', fatal=False)
|
'html5 player', fatal=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user