fix: accept semicolon jsonp in live stream parser

This commit is contained in:
hajimi
2026-06-21 12:22:19 +08:00
parent 11b06be9b1
commit ecef509037
+1 -1
View File
@@ -18,7 +18,7 @@ FETCH_BATCH_SIZE = 30
FETCH_TIMEOUT = 15
FETCH_ERROR_LIMIT = 500
ROOM_ID_RE = re.compile(r"/room/(\d+)")
DETAIL_JSONP_RE = re.compile(r"detail\((\{.*\})\)\s*$", re.S)
DETAIL_JSONP_RE = re.compile(r"detail\((\{.*\})\)\s*;?\s*$", re.S)
DEFAULT_HEADERS = {
"User-Agent": (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "