From 958dac630231c4ff71db5a16f3fdc5d9c2f09828 Mon Sep 17 00:00:00 2001 From: xiaofeng wang Date: Thu, 17 Jul 2025 11:45:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BB=A5=E4=BD=BF=E7=94=A8=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oneget.py b/oneget.py index f2d0627..15bfdb8 100644 --- a/oneget.py +++ b/oneget.py @@ -139,6 +139,7 @@ proxies = { 'http': proxies_str, 'https': proxies_str } +kw = kwdata['keyword'] dmheader_manager = DMHeaderManager(proxies=proxies) @@ -148,7 +149,7 @@ headers = dmheader_manager.get_headers() data = { "operationName": "SEARCH_QUERY", "variables": { - "query": "朝雪录 ep", + "query": kw, "shouldIncludeTopResults": True, # 是否包含热门结果 "shouldIncludeChannels": False, # 是否包含频道 "shouldIncludePlaylists": False, # 是否包含播放列表