From 658ec86e57ba7b1c7ac2d6ff3e38c7210cbfb399 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 15 Aug 2022 00:32:06 +0530 Subject: Return only non-directory part of poster filename. * ennum.el (ennum-video-poster): Return only non-directory part of poster filename. --- ennum.el | 7 ++++--- 1 file 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))) -- cgit v1.2.3