Commit fd797ec8 authored by fred's avatar fred

create-sound-files: adjust covert art for python 3

parent ed3e616d
......@@ -124,7 +124,7 @@ class Command(BaseCommand):
if format == 'ogg':
audio['coverartmime'] = mimetype
audio['coverartdescription'] = 'image'
audio['coverart'] = base64.encodestring(image.read()).replace('\n', '')
audio['coverart'] = base64.encodebytes(image.read()).replace(b'\n', b'').decode('ascii')
elif format == 'mp3':
audio.save()
audio = mutagen.mp3.MP3(file_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment