mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Fixed Errors indicated by travis-ci
See https://travis-ci.org/sampsyo/beets/jobs/69335554
This commit is contained in:
parent
3b2c3a5b31
commit
3b6373541a
1 changed files with 7 additions and 4 deletions
|
|
@ -44,8 +44,11 @@ class PlayPlugin(BeetsPlugin):
|
|||
help='send music to a player as a playlist'
|
||||
)
|
||||
play_command.parser.add_album_option()
|
||||
play_command.parser.add_option('-o','--optargs',action='store_true',
|
||||
help='Insert additional arguments into command string')
|
||||
play_command.parser.add_option(
|
||||
'-o', '--optargs',
|
||||
action='store_true',
|
||||
help='Insert additional arguments into command string'
|
||||
)
|
||||
play_command.func = self.play_music
|
||||
return [play_command]
|
||||
|
||||
|
|
@ -62,9 +65,9 @@ class PlayPlugin(BeetsPlugin):
|
|||
|
||||
# Prepare command strings with optional args
|
||||
if opts.optargs:
|
||||
command_str=command_str.format(optargs or '')
|
||||
command_str = command_str.format(optargs or '')
|
||||
else:
|
||||
command_str=command_str.format('')
|
||||
command_str = command_str.format('')
|
||||
|
||||
# Perform search by album and add folders rather than tracks to
|
||||
# playlist.
|
||||
|
|
|
|||
Loading…
Reference in a new issue