Commit 6ab3953

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-04-13 18:27:30
fix(ytdlp): fix facebook share link regex
1 parent 32c328e
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):