Browse Source

[postprocessor/embedthumbnail] Recognize atomicparsley binary in lowercase (#28112)

pull/28008/merge
Max 5 months ago
committed by GitHub
parent
commit
646052e416
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      youtube_dl/postprocessor/embedthumbnail.py

8
youtube_dl/postprocessor/embedthumbnail.py

@ -89,10 +89,14 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
os.rename(encodeFilename(temp_filename), encodeFilename(filename))
elif info['ext'] in ['m4a', 'mp4']:
if not check_executable('AtomicParsley', ['-v']):
atomicparsley = next((x
for x in ['AtomicParsley', 'atomicparsley']
if check_executable(x, ['-v'])), None)
if atomicparsley is None:
raise EmbedThumbnailPPError('AtomicParsley was not found. Please install.')
cmd = [encodeFilename('AtomicParsley', True),
cmd = [encodeFilename(atomicparsley, True),
encodeFilename(filename, True),
encodeArgument('--artwork'),
encodeFilename(thumbnail_filename, True),

Loading…
Cancel
Save