diff options
author | Felix S <felix.von.s@posteo.de> | 2021-04-28 16:17:30 +0530 |
---|---|---|
committer | Felix S <felix.von.s@posteo.de> | 2021-04-28 17:21:14 +0530 |
commit | 4a2f19abbd61274358211c2e3b1d9658cfbdcdde (patch) | |
tree | b699bd90de1877ff233f9489065db9a1369cda68 /yt_dlp/compat.py | |
parent | 5fbcebed8c41f4406d88318203c69efdc73f4e03 (diff) |
[downloader/hls] Assemble single-file WebVTT subtitles from HLS segments
Diffstat (limited to 'yt_dlp/compat.py')
-rw-r--r-- | yt_dlp/compat.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yt_dlp/compat.py b/yt_dlp/compat.py index 3ebf1ee7a..863bd2287 100644 --- a/yt_dlp/compat.py +++ b/yt_dlp/compat.py @@ -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', |