Skip to content

Commit

Permalink
Check if atomicparsley is present as lowercase bin
Browse files Browse the repository at this point in the history
  • Loading branch information
nbr23 committed Feb 13, 2021
1 parent 5fc5369 commit d5370bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions youtube_dl/postprocessor/embedthumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ def is_webp(path):
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),
Expand Down

0 comments on commit d5370bd

Please sign in to comment.