mirror of
https://github.com/beetbox/beets.git
synced 2026-01-01 05:23:05 +01:00
correcting sytles
This commit is contained in:
parent
f8b6c1ea11
commit
44e84e775a
1 changed files with 7 additions and 7 deletions
|
|
@ -59,7 +59,7 @@ def play_music(lib, opts, args):
|
|||
paths = [item.path for item in lib.items(ui.decargs(args))]
|
||||
itemType = 'track'
|
||||
|
||||
itemType += 's' if len(paths) > 1 else ''
|
||||
itemType += 's' if len(paths) > 1 else ''
|
||||
|
||||
if not paths:
|
||||
ui.print_(ui.colorize('yellow', 'no {0} to play.'.format(itemType)))
|
||||
|
|
@ -68,8 +68,8 @@ def play_music(lib, opts, args):
|
|||
# Warn user before playing any huge playlists.
|
||||
if len(paths) > 100:
|
||||
ui.print_(ui.colorize('yellow',
|
||||
'do you really want to play {0} {1}?'
|
||||
.format(len(paths), itemType)))
|
||||
'do you really want to play {0} {1}?'
|
||||
.format(len(paths), itemType)))
|
||||
|
||||
if ui.input_options(('Continue', 'Abort')) == 'a':
|
||||
return
|
||||
|
|
@ -85,7 +85,7 @@ def play_music(lib, opts, args):
|
|||
FNULL = open(os.devnull, 'w')
|
||||
|
||||
subprocess.Popen([command, m3u.name],
|
||||
stdout=FNULL, stderr=subprocess.STDOUT)
|
||||
stdout=FNULL, stderr=subprocess.STDOUT)
|
||||
|
||||
FNULL.close()
|
||||
else:
|
||||
|
|
@ -106,9 +106,9 @@ class PlayPlugin(BeetsPlugin):
|
|||
|
||||
def commands(self):
|
||||
play_command = Subcommand('play',
|
||||
help='send query results to music player as playlist.')
|
||||
help='send query results to music player as playlist.')
|
||||
play_command.parser.add_option('-a', '--album',
|
||||
action='store_true', default=False,
|
||||
help='query and load albums(folders) rather then tracks.')
|
||||
action='store_true', default=False,
|
||||
help='query and load albums(folders) rather then tracks.')
|
||||
play_command.func = play_music
|
||||
return [play_command]
|
||||
|
|
|
|||
Loading…
Reference in a new issue