mirror of
https://github.com/doms9/iptv.git
synced 2026-03-07 11:18:25 +01:00
e
edit scraping method for webcast.py
This commit is contained in:
parent
65d1ee9729
commit
00000d9e29
4 changed files with 84 additions and 44 deletions
|
|
@ -215,10 +215,7 @@ class Network:
|
|||
|
||||
escaped = [re.escape(i) for i in invalids]
|
||||
|
||||
pattern = re.compile(
|
||||
rf"^(?!.*({'|'.join(escaped)})).*\.m3u8",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
pattern = re.compile(rf"^(?!.*({'|'.join(escaped)})).*\.m3u8", re.I)
|
||||
|
||||
if pattern.search(req.url):
|
||||
captured.append(req.url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue