From 5e8ac9e4a5d06de791fe051a419ba070bbdd5bec Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Tue, 14 Jun 2016 21:14:21 +0200 Subject: [PATCH] Expose the relative path to the library instead of omitting the 'path' variable --- beetsplug/web/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 59fa6b42a..baf83f7ca 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -37,7 +37,7 @@ def _rep(obj, expand=False): out = dict(obj) if isinstance(obj, beets.library.Item): - del out['path'] + out['path'] = obj.destination(fragment=True) # Get the size (in bytes) of the backing file. This is useful # for the Tomahawk resolver API.