Browse Source

fix cover missing #10 #11

pull/16/head
nondanee 6 years ago
parent
commit
757ec227c5
  1. 2
      ncmdump.py

2
ncmdump.py

@ -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

Loading…
Cancel
Save