1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 23:02:52 +08:00

[teamcoco] Fix base64 regexp

This commit is contained in:
Jakub Wilk 2016-05-14 13:19:54 +02:00
parent 98d560f205
commit 791ff52f75

View File

@ -88,7 +88,7 @@ class TeamcocoIE(InfoExtractor):
preload_codes = self._html_search_regex( preload_codes = self._html_search_regex(
r'(function.+)setTimeout\(function\(\)\{playlist', r'(function.+)setTimeout\(function\(\)\{playlist',
webpage, 'preload codes') webpage, 'preload codes')
base64_fragments = re.findall(r'"([a-zA-z0-9+/=]+)"', preload_codes) base64_fragments = re.findall(r'"([a-zA-Z0-9+/=]+)"', preload_codes)
base64_fragments.remove('init') base64_fragments.remove('init')
def _check_sequence(cur_fragments): def _check_sequence(cur_fragments):