Commit f486f78

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-02-26 07:02:40
fix(douyin): use `GET` to flatten url rediercts
1 parent 84ac0c2
Changed files (1)
src/networking.py
@@ -378,6 +378,7 @@ async def flatten_rediercts(texts: str | None = None, pattern: str | None = None
         url = matched.group(0)
     # v.douyin.com
     if matched := re.search(r"(https?://)?v\.douyin\.com/([^.。,,?&/\s]+)", texts):
+        method = "GET"  # use GET for v.douyin.com
         url = matched.group(0)
     # vt.tiktok.com
     if matched := re.search(r"(https?://)?vt\.tiktok\.com/([^.。,,?&/\s]+)", texts):