diff --git a/tafrigh/config.py b/tafrigh/config.py index 7a931ea..ef3b9f0 100644 --- a/tafrigh/config.py +++ b/tafrigh/config.py @@ -50,7 +50,7 @@ def __init__( ) def use_wit(self) -> bool: - return self.wit.wit_client_access_tokens != [] + return self.wit.wit_client_access_tokens is not None and self.wit.wit_client_access_tokens != [] class Input: def __init__(self, urls_or_paths: list[str], skip_if_output_exist: bool, playlist_items: str, verbose: bool): @@ -84,7 +84,7 @@ def __init__( class Wit: def __init__(self, wit_client_access_tokens: list[str], max_cutting_duration: int): - self.wit_client_access_tokens = wit_client_access_tokens + self.wit_client_access_tokens = [key for key in wit_client_access_tokens if key is not None or key != ''] self.max_cutting_duration = max_cutting_duration class Output: