From d33c37db27a3e3da4062b75abd4086123b53dcfa Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Fri, 30 May 2025 22:52:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=A6=96=E9=80=89?= =?UTF-8?q?=E5=9B=BD=E5=AE=B6=E5=A4=B4=E4=BB=A5=E6=94=AF=E6=8C=81=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index e91c3b2..bacfec6 100644 --- a/main.py +++ b/main.py @@ -231,6 +231,7 @@ def gettoken(proxy, r=2): copy_headers['x-dm-visit-id'] = str(int(time.time() * 1000)) copy_headers['x-dm-visitor-id'] = uuid_with_dash copy_headers['User-Agent'] = UserAgent[random.randint(0, len(UserAgent) - 1)] + copy_headers['X-DM-Preferred-Country'] = proxy.lower() with _cache_lock: _headers_cache = copy_headers return copy_headers