diff options
Diffstat (limited to 'ennum.el')
-rw-r--r-- | ennum.el | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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))) |