[youtube] Recognize another HTML5 player URL (#12885)

pull/12909/head
Yen Chi Hsuan 2017-04-28 16:25:04 +08:00
parent e31fed95b4
commit b62985a9a5
No known key found for this signature in database
GPG Key ID: 7F902A182457CA23
1 changed files with 2 additions and 1 deletions

View File

@ -1629,7 +1629,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
player_desc = 'flash player %s' % player_version
else:
player_version = self._search_regex(
[r'html5player-([^/]+?)(?:/html5player(?:-new)?)?\.js', r'(?:www|player)-([^/]+)/base\.js'],
[r'html5player-([^/]+?)(?:/html5player(?:-new)?)?\.js',
r'(?:www|player)-([^/]+)(?:/[a-z]{2}_[A-Z]{2})?/base\.js'],
player_url,
'html5 player', fatal=False)
player_desc = 'html5 player %s' % player_version