From 893a26d0cd46ef6b8f0c508ab4ee7a9899e38277 Mon Sep 17 00:00:00 2001 From: EmacsConf Date: Sun, 3 Dec 2023 08:01:19 -0500 Subject: make watching more prominent, check for caption existence --- emacsconf-publish.el | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/emacsconf-publish.el b/emacsconf-publish.el index d590dc6..2ee4ee4 100644 --- a/emacsconf-publish.el +++ b/emacsconf-publish.el @@ -348,7 +348,10 @@ :captions (and (stringp video-file) (or (plist-get talk :captions-edited) - (emacsconf-captions-edited-p (expand-file-name (emacsconf-talk-file talk "--main.vtt") emacsconf-cache-dir))) + (and + (emacsconf-talk-file talk "--main.vtt") + (emacsconf-captions-edited-p + (expand-file-name (emacsconf-talk-file talk "--main.vtt") emacsconf-cache-dir)))) (let ((tracks (emacsconf-video-subtitle-tracks (or (plist-get talk :caption-file) @@ -587,7 +590,7 @@ resources." (org-timestamp-split-range (org-timestamp-from-string (plist-get o :scheduled)))))) (format - "
Times in different timezones:
%s
which is the same as:
%s
Find out how to watch and participate
" + "
Times in different timezones:
%s
which is the same as:
%s
Find out how to watch and participate
" (format-time-string "%Y-%m-%dT%H:%M:%SZ" start t) (format-time-string "%Y-%m-%dT%H:%M:%SZ" end t) (emacsconf-timezone-string o emacsconf-timezone) @@ -747,7 +750,7 @@ This includes the intro note, the schedule, and talk resources." (if lang (format "--main_%s.vtt" lang) "--main.vtt")))) - (if (emacsconf-captions-edited-p filename) ; todo: cache this somewhere + (if (and filename (emacsconf-captions-edited-p filename)) ; todo: cache this somewhere (emacsconf-publish-format-transcript (append (list :chapter-file (emacsconf-talk-file talk "--main--chapters.vtt") @@ -823,7 +826,10 @@ Back to the [[talks]] \n" (if prev-talk (format "Previous by %s: %s \n" label prev-talk) "") (if next-talk (format "Next by %s: %s \n" label next-talk) "") (if (plist-get o :track) ; tagging doesn't work here because ikiwiki will list the nav page - (format "Track: %s \n" (plist-get o :track) (plist-get o :track)) + (format "Track: %s - Watch \n" + (plist-get o :track) + (plist-get o :track) + (plist-get o :watch-url)) "") " "))))))) -- cgit v1.2.3