We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 908b8dc commit b57c49dCopy full SHA for b57c49d
beetsplug/web/__init__.py
@@ -43,10 +43,10 @@ def _rep(obj, expand=False):
43
else:
44
del out['path']
45
46
- # Filter all bytes attributes and convert them to strings
+ # Filter all bytes attributes and convert them to strings.
47
for key, value in out.items():
48
if isinstance(out[key], bytes):
49
- out[key] = base64.b64encode(out[key]).decode('ascii')
+ out[key] = base64.b64encode(value).decode('ascii')
50
51
# Get the size (in bytes) of the backing file. This is useful
52
# for the Tomahawk resolver API.
0 commit comments