@@ -107,7 +107,7 @@ class Scraping:
|
||||
# If actor is anonymous, Fill in Anonymous
|
||||
if len(json_data['actor']) == 0:
|
||||
if config.getInstance().anonymous_fill() == True:
|
||||
if "zh_" in config.getInstance().get_target_language():
|
||||
if "zh_" in config.getInstance().get_target_language() or "ZH" in config.getInstance().get_target_language():
|
||||
json_data['actor'] = "佚名"
|
||||
else:
|
||||
json_data['actor'] = "Anonymous"
|
||||
@@ -167,7 +167,7 @@ class Scraping:
|
||||
# If actor is anonymous, Fill in Anonymous
|
||||
if len(json_data['actor']) == 0:
|
||||
if config.getInstance().anonymous_fill() == True:
|
||||
if "zh_" in config.getInstance().get_target_language():
|
||||
if "zh_" in config.getInstance().get_target_language() or "ZH" in config.getInstance().get_target_language():
|
||||
json_data['actor'] = "佚名"
|
||||
else:
|
||||
json_data['actor'] = "Anonymous"
|
||||
@@ -263,4 +263,4 @@ class Scraping:
|
||||
and (data["cover_small"] is None or data["cover_small"] == "" or
|
||||
data["cover_small"] == "null"):
|
||||
return False
|
||||
return True
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user