]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/webvtt.py
[ie/hytale] Use `CloudflareStreamIE` explicitly (#9672)
[yt-dlp.git] / yt_dlp / webvtt.py
index 596e9bf738ae3be388ee4506cacc6f7b0183843c..7683bfb0f3a0768e44b76c70ab034cd2da5a5d82 100644 (file)
@@ -78,7 +78,7 @@ def commit(self):
 class ParseError(Exception):
     def __init__(self, parser):
         super().__init__("Parse error at position %u (near %r)" % (
-            parser._pos, parser._data[parser._pos:parser._pos + 20]
+            parser._pos, parser._data[parser._pos:parser._pos + 100]
         ))
 
 
@@ -286,8 +286,8 @@ def parse(cls, parser):
         m1 = parser.consume(_REGEX_TS)
         if not m1:
             return None
-        parser.consume(_REGEX_OPTIONAL_WHITESPACE)
         m2 = parser.consume(cls._REGEX_SETTINGS)
+        parser.consume(_REGEX_OPTIONAL_WHITESPACE)
         if not parser.consume(_REGEX_NL):
             return None