mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 12:02:44 +01:00
parent
908b8dca97
commit
b57c49d738
1 changed files with 2 additions and 2 deletions
|
|
@ -43,10 +43,10 @@ def _rep(obj, expand=False):
|
|||
else:
|
||||
del out['path']
|
||||
|
||||
# Filter all bytes attributes and convert them to strings
|
||||
# Filter all bytes attributes and convert them to strings.
|
||||
for key, value in out.items():
|
||||
if isinstance(out[key], bytes):
|
||||
out[key] = base64.b64encode(out[key]).decode('ascii')
|
||||
out[key] = base64.b64encode(value).decode('ascii')
|
||||
|
||||
# Get the size (in bytes) of the backing file. This is useful
|
||||
# for the Tomahawk resolver API.
|
||||
|
|
|
|||
Loading…
Reference in a new issue