aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorMax <github@nbr23.com>2021-02-16 15:22:51 -0500
committerGitHub <noreply@github.com>2021-02-17 03:22:51 +0700
commit646052e416577cc805b7ba169c49158716541570 (patch)
treee868cd83265864b17048678e296f95ec8f32cd04 /youtube_dl
parent844e4cbc547f2a2f76053786522bdd6b53bf9ae1 (diff)
[postprocessor/embedthumbnail] Recognize atomicparsley binary in lowercase (#28112)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/postprocessor/embedthumbnail.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py
index 5a3359588..3990908b6 100644
--- a/youtube_dl/postprocessor/embedthumbnail.py
+++ b/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),