diff --git a/VERSION b/VERSION index b57fc722..40b2fd1d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.2 +1.18.2-develop1 diff --git a/modules/config.py b/modules/config.py index 2af5da5e..374a8adc 100644 --- a/modules/config.py +++ b/modules/config.py @@ -988,7 +988,7 @@ class ConfigFile: def notify_delete(self, message, server=None, library=None): try: - self.Webhooks.delete_webhooks(message, server=server, library=library) + self.Webhooks.delete_hooks(message, server=server, library=library) except Failed as e: logger.stacktrace() logger.error(f"Webhooks Error: {e}") diff --git a/plex_meta_manager.py b/plex_meta_manager.py index a31ac9ab..296af65e 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -57,7 +57,7 @@ def get_arg(env_str, default, arg_bool=False, arg_int=False): if env_value is not None: final_value = env_value break - if final_value is not None: + if final_value or (arg_int and final_value == 0): if arg_bool: if final_value is True or final_value is False: return final_value @@ -66,7 +66,10 @@ def get_arg(env_str, default, arg_bool=False, arg_int=False): else: return False elif arg_int: - return int(final_value) + try: + return int(final_value) + except ValueError: + return default else: return str(final_value) else: