mirror of
https://github.com/beetbox/beets.git
synced 2025-12-19 07:04:51 +01:00
Merge pull request #2702 from j000/patch-1
[Play plugin]Respect relative paths when using albums
This commit is contained in:
commit
a1f1e35ba4
1 changed files with 3 additions and 2 deletions
|
|
@ -116,10 +116,11 @@ class PlayPlugin(BeetsPlugin):
|
|||
else:
|
||||
selection = lib.items(ui.decargs(args))
|
||||
paths = [item.path for item in selection]
|
||||
if relative_to:
|
||||
paths = [relpath(path, relative_to) for path in paths]
|
||||
item_type = 'track'
|
||||
|
||||
if relative_to:
|
||||
paths = [relpath(path, relative_to) for path in paths]
|
||||
|
||||
if not selection:
|
||||
ui.print_(ui.colorize('text_warning',
|
||||
u'No {0} to play.'.format(item_type)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue