summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ennum.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/ennum.el b/ennum.el
index 7161eeb..040b57f 100644
--- a/ennum.el
+++ b/ennum.el
@@ -376,9 +376,10 @@ result as a string."
(_ (ennum-copy interned-file output-file)))))))
(defun ennum-video-poster (video)
- (or (seq-find (lambda (file)
- (string= (file-name-base file)
- (file-name-base video)))
+ (or (seq-some (lambda (file)
+ (and (string= (file-name-base file)
+ (file-name-base video))
+ (file-name-nondirectory file)))
(ennum-directory-files (ennum-setting :images-directory)))
(user-error "Poster for %s not found" video)))