thumb: fix misleading error message

ffmpeg can also be used to thumbnail
image files
This commit is contained in:
AppleTheGolden 2025-09-27 23:32:25 +02:00
parent e8309c3e99
commit 11860d5369
No known key found for this signature in database
GPG key ID: F6AC8A62154C42AA

View file

@ -695,7 +695,7 @@ class ThumbSrv(object):
return
c: Union[str, int] = "90"
t = "FFmpeg failed (probably a corrupt video file):\n"
t = "FFmpeg failed (probably a corrupt file):\n"
if (
(not self.args.th_ff_jpg or time.time() - int(self.args.th_ff_jpg) < 60)
and cmd[-1].lower().endswith(b".webp")