play: Fix typo treshold > threshold:

We should warn users that the corresponding config key changed accordingly.
This commit is contained in:
nath@laptop 2016-01-06 09:16:46 +01:00
parent dd66ca51f9
commit 72056e8e07
2 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ class PlayPlugin(BeetsPlugin):
'use_folders': False,
'relative_to': None,
'raw': False,
'warning_treshold': 100,
'warning_threshold': 100,
})
def commands(self):
@ -68,7 +68,7 @@ class PlayPlugin(BeetsPlugin):
use_folders = config['play']['use_folders'].get(bool)
relative_to = config['play']['relative_to'].get()
raw = config['play']['raw'].get(bool)
warning_treshold = config['play']['warning_treshold'].get(int)
warning_threshold = config['play']['warning_threshold'].get(int)
if relative_to:
relative_to = util.normpath(relative_to)
@ -110,7 +110,7 @@ class PlayPlugin(BeetsPlugin):
return
# Warn user before playing any huge playlists.
if warning_treshold and len(selection) > warning_treshold:
if warning_threshold and len(selection) > warning_threshold:
ui.print_(ui.colorize(
'text_warning',
'You are about to queue {0} {1}.'.format(len(selection),

View file

@ -47,7 +47,7 @@ configuration file. The available options are:
- **raw**: Instead of creating a temporary m3u playlist and then opening it,
simply call the command with the paths returned by the query as arguments.
Default: ``no``.
- **warning_treshold**: Set the minimum number of files to play which will
- **warning_threshold**: Set the minimum number of files to play which will
trigger a warning to be emitted. If set to ``no``, warning are never issued.
Default: 100.