@@ -64,9 +64,7 @@ def __init__(self):
64
64
'use_folders' : False ,
65
65
'relative_to' : None ,
66
66
'raw' : False ,
67
- # Backwards compatibility. See #1803 and line 155
68
- 'warning_threshold' : - 2 ,
69
- 'warning_treshold' : 100 ,
67
+ 'warning_threshold' : 100 ,
70
68
})
71
69
72
70
self .register_listener ('before_choose_candidate' ,
@@ -162,16 +160,6 @@ def _exceeds_threshold(self, selection, command_str, open_args,
162
160
True, cancel playback. If False, execute play command.
163
161
"""
164
162
warning_threshold = config ['play' ]['warning_threshold' ].get (int )
165
- # We use -2 as a default value for warning_threshold to detect if it is
166
- # set or not. We can't use a falsey value because it would have an
167
- # actual meaning in the configuration of this plugin, and we do not use
168
- # -1 because some people might use it as a value to obtain no warning,
169
- # which wouldn't be that bad of a practice.
170
- if warning_threshold == - 2 :
171
- # if warning_threshold has not been set by user, look for
172
- # warning_treshold, to preserve backwards compatibility. See #1803.
173
- # warning_treshold has the correct default value of 100.
174
- warning_threshold = config ['play' ]['warning_treshold' ].get (int )
175
163
176
164
# Warn user before playing any huge playlists.
177
165
if warning_threshold and len (selection ) > warning_threshold :
0 commit comments