将元数据的来源网站记入日志以便进行评估

This commit is contained in:
lededev
2021-10-18 10:51:32 +08:00
parent c9b96f65ab
commit 24b4f9f5e2
4 changed files with 7 additions and 5 deletions

View File

@@ -115,6 +115,7 @@ def get_data_from_json(file_number): # 从JSON返回元数据
json_data = json.loads(pool.apply_async(func_mapping[source], (file_number,)).get())
# if any service return a valid return, break
if get_data_state(json_data):
print(f"[+]Find movie [{file_number}] metadata on website '{source}'")
break
pool.close()
pool.terminate()
@@ -126,6 +127,7 @@ def get_data_from_json(file_number): # 从JSON返回元数据
json_data = json.loads(func_mapping[source](file_number))
# if any service return a valid return, break
if get_data_state(json_data):
print(f"[+]Find movie [{file_number}] metadata on website '{source}'")
break
except:
break