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"),