|
@ -93,6 +93,7 @@ def dump(input_path, output_path = None, skip = True): |
|
|
audio = flac.FLAC(output_path) |
|
|
audio = flac.FLAC(output_path) |
|
|
# audio.delete() |
|
|
# audio.delete() |
|
|
image = flac.Picture() |
|
|
image = flac.Picture() |
|
|
|
|
|
image.encoding = 0 |
|
|
image.type = 3 |
|
|
image.type = 3 |
|
|
image.mime = 'image/jpeg' |
|
|
image.mime = 'image/jpeg' |
|
|
image.data = image_data |
|
|
image.data = image_data |
|
@ -102,6 +103,7 @@ def dump(input_path, output_path = None, skip = True): |
|
|
audio = mp3.MP3(output_path) |
|
|
audio = mp3.MP3(output_path) |
|
|
# audio.delete() |
|
|
# audio.delete() |
|
|
image = id3.APIC() |
|
|
image = id3.APIC() |
|
|
|
|
|
image.encoding = 0 |
|
|
image.type = 3 |
|
|
image.type = 3 |
|
|
image.mime = 'image/jpeg' |
|
|
image.mime = 'image/jpeg' |
|
|
image.data = image_data |
|
|
image.data = image_data |
|
|