feat: 添加项目配置文件和更新代理设置以支持新功能

This commit is contained in:
晓丰 2025-05-19 22:18:55 +08:00
parent a3a8834df0
commit 16c71d5b5b

View File

@ -199,6 +199,7 @@ def gettoken():
'visitor_id': uuid_with_dash, 'visitor_id': uuid_with_dash,
} }
try: try:
# proxy_str = db.get_proxy(Gproxies)
proxy_str = db.get_proxy(Gproxies) proxy_str = db.get_proxy(Gproxies)
url = 'https://graphql.api.dailymotion.com/oauth/token' url = 'https://graphql.api.dailymotion.com/oauth/token'
response = requests.post(url, headers=headers, data=data, proxies={"http": proxy_str, "https": proxy_str}) 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, "index": calculated_index,
"v_id": node.get("id"), "v_id": node.get("id"),
"v_xid": node.get('xid'), "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"), "title": node.get("title"),
"createtime": node.get("createdAt"), "createtime": node.get("createdAt"),
"duration": node.get("duration"), "duration": node.get("duration"),