style(xtapes): polpauzy w regexach jako escape'y
Some checks are pending
Backend tests / test (push) Waiting to run
Some checks are pending
Backend tests / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3d71a071a3
commit
b3938abf06
1 changed files with 2 additions and 2 deletions
|
|
@ -52,10 +52,10 @@ _MOVIES_CATEGORY = 1766
|
|||
_PER_PAGE = 30
|
||||
|
||||
_TITLE_RE = re.compile(
|
||||
r"^(?P<title>.+?)\s*\((?P<year>(?:19|20)\d{2})\)\s*(?:[-–—]\s*Full\s+Movie)?\s*$",
|
||||
r"^(?P<title>.+?)\s*\((?P<year>(?:19|20)\d{2})\)\s*(?:[-\u2013\u2014]\s*Full\s+Movie)?\s*$",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
_FULL_MOVIE_TAIL_RE = re.compile(r"\s*[-–—]\s*Full\s+Movie\s*$", re.IGNORECASE)
|
||||
_FULL_MOVIE_TAIL_RE = re.compile(r"\s*[-\u2013\u2014]\s*Full\s+Movie\s*$", re.IGNORECASE)
|
||||
_STUDIO_CAT_RE = re.compile(r"^\[(?P<name>.+)\]$")
|
||||
_IFRAME_RE = re.compile(r"""<iframe[^>]+src=["']((?:https?:)?//[^"']+)["']""", re.IGNORECASE)
|
||||
_DURATION_RE = re.compile(r'itemprop="duration"\s+content="P(?:\d+D)?T?(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?"')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue