将元数据的来源网站记入日志以便进行评估
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user