|
@@ -47,19 +47,20 @@ def recall_search_video(video_path, title, trace_id):
|
|
|
info="通过baidu搜索失败---{}".format(title),
|
|
|
trace_id=trace_id
|
|
|
)
|
|
|
- xigua_result = xigua_search(title)
|
|
|
- if xigua_result:
|
|
|
- return {
|
|
|
- "platform": "xg_search",
|
|
|
- "result": xigua_result[0]
|
|
|
- }
|
|
|
- else:
|
|
|
- logging(
|
|
|
- code="7001",
|
|
|
- info="通过西瓜搜索失败---{}".format(title),
|
|
|
- trace_id=trace_id
|
|
|
- )
|
|
|
- return None
|
|
|
+ return None
|
|
|
+ # xigua_result = xigua_search(title)
|
|
|
+ # if xigua_result:
|
|
|
+ # return {
|
|
|
+ # "platform": "xg_search",
|
|
|
+ # "result": xigua_result[0]
|
|
|
+ # }
|
|
|
+ # else:
|
|
|
+ # logging(
|
|
|
+ # code="7001",
|
|
|
+ # info="通过西瓜搜索失败---{}".format(title),
|
|
|
+ # trace_id=trace_id
|
|
|
+ # )
|
|
|
+ # return None
|
|
|
else:
|
|
|
logging(
|
|
|
code="7000",
|