fix for original_language

pull/30/head
meisnate12 4 years ago
parent a222b32da4
commit c78358d535

@ -949,12 +949,12 @@ class Config:
logger.info("") logger.info("")
if len(missing_movies) > 0: if len(missing_movies) > 0:
not_lang = None not_lang = None
if "original_language" in filters: terms = None
terms = filters["original_language"] if isinstance(filters["original_language"], list) else [lang.lower() for lang in str(filters["original_language"]).split(", ")] for filter_method, filter_data in filters:
not_lang = False if filter_method.startswith("original_language"):
if "original_language.not" in filters: terms = filter_data if isinstance(filter_data, list) else [lang.strip().lower() for lang in str(filter_data).split(",")]
terms = filters["original_language.not"] if isinstance(filters["original_language.not"], list) else [lang.lower() for lang in str(filters["original_language.not"]).split(", ")] not_lang = filter_method.endswith(".not")
not_lang = True break
missing_movies_with_names = [] missing_movies_with_names = []
for missing_id in missing_movies: for missing_id in missing_movies:

Loading…
Cancel
Save