Fix single movie input

This commit is contained in:
68cdrBxM8YdoJ
2020-04-19 19:40:42 +09:00
parent 7be685702b
commit 96cc434884
4 changed files with 66 additions and 45 deletions

View File

@@ -5,6 +5,9 @@ import config
def get_data_state(data: dict) -> bool: # 元数据获取失败检测
if "title" not in data or "number" not in data:
return False
if data["title"] is None or data["title"] == "" or data["title"] == "null":
return False