Commit 6ab3953
Changed files (1)
src/networking.py
@@ -378,7 +378,7 @@ async def flatten_rediercts(texts: str | None = None, pattern: str | None = None
if matched := re.search(r"(https?://)?(www\.)?tiktok\.com/t/([^.。,,?&/\s]+)", texts):
url = matched.group(0)
# facebook.com/
- if matched := re.search(r"(https?://)?facebook\.com/share/r/([^.。,,?&/\s]+)", texts):
+ if matched := re.search(r"(https?://)?(:?m\.|www\.)facebook\.com/share/(v|r)/([^.。,,?&/\s]+)", texts):
url = matched.group(0)
# b23.tv
if matched := re.search(r"(https?://)?b23\.tv/([^.。,,?&/\s]+)", texts):