From 5bb5b79f7182c7dea90a3d9dc4ce11d78b49234b Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 15 Aug 2022 18:49:26 +0530 Subject: Link to video poster in images directory, not the video directory. * ennum-html.el (ennum-html-link): Link to video poster in images directory, not the video directory. --- ennum-html.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ennum-html.el') diff --git a/ennum-html.el b/ennum-html.el index b8a98e5..dcdf26b 100644 --- a/ennum-html.el +++ b/ennum-html.el @@ -308,16 +308,16 @@ (ennum-html-find-link 'post path info))) (org-export-backend-name (plist-get info :back-end)))) ("video" - (let ((video-directory (ennum-setting :video-directory))) - (xmlgen - `(video :src ,(url-encode-url (expand-file-name* path video-directory)) - :poster ,(url-encode-url - (expand-file-name* - (ennum-video-link-poster - (ennum-html-find-link 'video path info)) - video-directory)) - :preload "none" - :controls "")))) + (xmlgen + `(video :src ,(url-encode-url + (expand-file-name* path (ennum-setting :video-directory))) + :poster ,(url-encode-url + (expand-file-name* + (ennum-video-link-poster + (ennum-html-find-link 'video path info)) + (ennum-setting :images-directory))) + :preload "none" + :controls ""))) ;; Pass other link types to org-html-link (_ (org-html-link link desc info))))) -- cgit v1.2.3