mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-10-03 14:32:15 +02:00
Merge pull request #14 from kleini/smil-403-false-positive
Detect a SMIL 403 by the ref it is reported in, not anywhere in the document
This commit is contained in:
@@ -604,7 +604,8 @@ class SmilManager:
|
||||
if "Invalid Token" in title or "InvalidAuthToken" in smil_content:
|
||||
logger.error(f"SMIL invalid token for {content_id}: {title}")
|
||||
return None
|
||||
if "403" in smil_content:
|
||||
if re.search(r"\b403\b", title) or re.search(r"\b403\b", abstract) \
|
||||
or "forbidden" in f"{title} {abstract}".lower():
|
||||
logger.error(
|
||||
f"SMIL access forbidden (403) for {content_id}: {title}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user