diff --git a/config.ini b/config.ini index 1f391a7..117eec9 100644 --- a/config.ini +++ b/config.ini @@ -16,6 +16,7 @@ retry=3 [Name_Rule] location_rule=actor+'/'+number naming_rule=number+'-'+title +max_title_len= 50 [update] update_check=1 diff --git a/config.py b/config.py index 1ad6fee..9a95199 100644 --- a/config.py +++ b/config.py @@ -57,7 +57,7 @@ class Config: """ try: return self.conf.getint("Name_Rule", "max_title_len") - except ValueError: + except: return 50 def update_check(self) -> bool: