diff --git a/beetsplug/play.py b/beetsplug/play.py index 425ef2a38..c26b97531 100644 --- a/beetsplug/play.py +++ b/beetsplug/play.py @@ -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]