From fa97684e7b96f9931ba019be066f628cc7116649 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 9 Sep 2013 20:56:38 -0700 Subject: [PATCH] fix outdated _record reference in web plugin --- beetsplug/web/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index ac2372c58..dcf383368 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -29,8 +29,9 @@ def _rep(obj, expand=False): Album object. For Albums, `expand` dictates whether tracks are included. """ + out = dict(obj) + if isinstance(obj, beets.library.Item): - out = dict(obj) del out['path'] # Get the size (in bytes) of the backing file. This is useful @@ -43,7 +44,6 @@ def _rep(obj, expand=False): return out elif isinstance(obj, beets.library.Album): - out = dict(obj._record) del out['artpath'] if expand: out['items'] = [_rep(item) for item in obj.items()]