mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-01 21:07:01 +08:00
fix(site): merge CookieCloud domains that start with a dot (#6805)
This commit is contained in:
@@ -33,6 +33,10 @@ def extract_domain(url: str) -> str:
|
||||
if domain in url:
|
||||
return domain
|
||||
_scheme, netloc = split_netloc(url)
|
||||
if not netloc:
|
||||
return ""
|
||||
# Cookie Domain 常带前导点;不去掉会被当成多一级域名,无法并入站点域名。
|
||||
netloc = netloc.lstrip(".")
|
||||
if not netloc:
|
||||
return ""
|
||||
labels = netloc.split(".")
|
||||
|
||||
Reference in New Issue
Block a user