Merge pull request #2702 from j000/patch-1

[Play plugin]Respect relative paths when using albums
This commit is contained in:
Nathan Dwek 2017-09-28 09:03:48 +02:00 committed by GitHub
commit a1f1e35ba4

View file

@ -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)))