From 16c71d5b5bc9a6af2b7fdeb4f162a93c0b81bc4a Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Mon, 19 May 2025 22:18:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=92=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E8=AE=BE=E7=BD=AE=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 169c052..6196593 100644 --- a/main.py +++ b/main.py @@ -199,6 +199,7 @@ def gettoken(): 'visitor_id': uuid_with_dash, } try: + # proxy_str = db.get_proxy(Gproxies) proxy_str = db.get_proxy(Gproxies) url = 'https://graphql.api.dailymotion.com/oauth/token' response = requests.post(url, headers=headers, data=data, proxies={"http": proxy_str, "https": proxy_str}) @@ -592,7 +593,7 @@ def get_searchInfo(keyword, level): "index": calculated_index, "v_id": node.get("id"), "v_xid": node.get('xid'), - "link": "https://www.dailymotion.com/video/" + xid, + "link": "https://www.dailymotion.com/video/" + node.get('xid'), "title": node.get("title"), "createtime": node.get("createdAt"), "duration": node.get("duration"),