mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-08 22:38:33 +00:00
trying to correct formatting
This commit is contained in:
parent
ebed5745e8
commit
8297e51b34
@ -93,7 +93,8 @@ def run(self, info):
|
|||||||
# Using ffmpeg to embed the thumbnail in mp3 files is messing up lyrics
|
# Using ffmpeg to embed the thumbnail in mp3 files is messing up lyrics
|
||||||
# Using using mutagen instead
|
# Using using mutagen instead
|
||||||
audio = mutagen.id3.ID3(filename)
|
audio = mutagen.id3.ID3(filename)
|
||||||
if 'APIC' in audio:del audio['APIC']
|
if 'APIC' in audio:
|
||||||
|
del audio['APIC']
|
||||||
with open(thumbnail_filename, 'rb') as thumbfile:
|
with open(thumbnail_filename, 'rb') as thumbfile:
|
||||||
audio['APIC'] = mutagen.id3.APIC(
|
audio['APIC'] = mutagen.id3.APIC(
|
||||||
encoding=3, mime='image/%s' % thumbnail_ext, type=3,
|
encoding=3, mime='image/%s' % thumbnail_ext, type=3,
|
||||||
|
@ -59,6 +59,8 @@
|
|||||||
'alac': ('m4a', None, ('-acodec', 'alac')),
|
'alac': ('m4a', None, ('-acodec', 'alac')),
|
||||||
'wav': ('wav', None, ('-f', 'wav')),
|
'wav': ('wav', None, ('-f', 'wav')),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def create_mapping_re(supported):
|
def create_mapping_re(supported):
|
||||||
return re.compile(r'{0}(?:/{0})*$'.format(r'(?:\s*\w+\s*>)?\s*(?:%s)\s*' % '|'.join(supported)))
|
return re.compile(r'{0}(?:/{0})*$'.format(r'(?:\s*\w+\s*>)?\s*(?:%s)\s*' % '|'.join(supported)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user