Skip to content

Commit 0074e97

Browse files
committed
fix: dy search
1 parent 889fa01 commit 0074e97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

media_platform/douyin/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ async def __process_req_params(
9191
post_data = {}
9292
if request_method == "POST":
9393
post_data = params
94-
a_bogus = await get_a_bogus(uri, query_string, post_data, headers["User-Agent"], self.playwright_page)
95-
params["a_bogus"] = a_bogus
94+
95+
if "/v1/web/general/search" not in uri:
96+
a_bogus = await get_a_bogus(uri, query_string, post_data, headers["User-Agent"], self.playwright_page)
97+
params["a_bogus"] = a_bogus
9698

9799
async def request(self, method, url, **kwargs):
98100
async with httpx.AsyncClient(proxy=self.proxy) as client:

0 commit comments

Comments
 (0)