[downloader/hls] Assemble single-file WebVTT subtitles from HLS segments

This commit is contained in:
Felix S
2021-04-28 16:17:30 +05:30
parent 5fbcebed8c
commit 4a2f19abbd
4 changed files with 432 additions and 0 deletions

View File

@@ -3018,10 +3018,24 @@ else:
return ctypes.WINFUNCTYPE(*args, **kwargs)
try:
compat_Pattern = re.Pattern
except AttributeError:
compat_Pattern = type(re.compile(''))
try:
compat_Match = re.Match
except AttributeError:
compat_Match = type(re.compile('').match(''))
__all__ = [
'compat_HTMLParseError',
'compat_HTMLParser',
'compat_HTTPError',
'compat_Match',
'compat_Pattern',
'compat_Struct',
'compat_b64decode',
'compat_basestring',