From 77e8f21094672f9d2297fab3b12f1bbb3c251b40 Mon Sep 17 00:00:00 2001 From: j000 Date: Tue, 26 Sep 2017 03:20:00 +0200 Subject: [PATCH 1/2] [Play plugin]Respect relative paths when using albums --- beetsplug/play.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/play.py b/beetsplug/play.py index 8477acbfc..b540d7b9b 100644 --- a/beetsplug/play.py +++ b/beetsplug/play.py @@ -116,9 +116,10 @@ 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', From 5a82c7ead1fd1adc20d4ecaf3ae88578c982ee89 Mon Sep 17 00:00:00 2001 From: j000 Date: Wed, 27 Sep 2017 23:31:35 +0200 Subject: [PATCH 2/2] Remove whitespaces from empty line --- beetsplug/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/play.py b/beetsplug/play.py index b540d7b9b..4d32a3576 100644 --- a/beetsplug/play.py +++ b/beetsplug/play.py @@ -117,7 +117,7 @@ class PlayPlugin(BeetsPlugin): selection = lib.items(ui.decargs(args)) paths = [item.path for item in selection] item_type = 'track' - + if relative_to: paths = [relpath(path, relative_to) for path in paths]