@@ -15,7 +15,7 @@ class General:
1515 ignored_download_clients : list = []
1616 private_tracker_handling : str = "remove"
1717 public_tracker_handling : str = "remove"
18- obsolete_tag : str = None
18+ obsolete_tag : str = "Obsolete"
1919 protected_tag : str = "Keep"
2020
2121 def __init__ (self , config ):
@@ -46,7 +46,6 @@ def __init__(self, config):
4646 self .public_tracker_handling = self ._validate_tracker_handling (
4747 self .public_tracker_handling , "public_tracker_handling"
4848 )
49- self .obsolete_tag = self ._determine_obsolete_tag (self .obsolete_tag )
5049
5150 validate_data_types (self )
5251 self ._remove_none_attributes ()
@@ -67,17 +66,10 @@ def _validate_tracker_handling(value, field_name) -> str:
6766 return "remove"
6867 return value
6968
70- def _determine_obsolete_tag (self , obsolete_tag ):
71- """Set obsolete tag to "obsolete", only if none is provided and the tag is needed for handling."""
72- if obsolete_tag is None and (
73- self .private_tracker_handling == "obsolete_tag"
74- or self .public_tracker_handling == "obsolete_tag"
75- ):
76- return "Obsolete"
77- return obsolete_tag
78-
7969 def config_as_yaml (self ):
8070 """Log all general settings."""
81- return get_config_as_yaml (
71+ config_yaml = get_config_as_yaml (
8272 vars (self ),
8373 )
74+ return config_yaml
75+
0 commit comments