summaryrefslogtreecommitdiffstats
path: root/emacsconf-subed.el
diff options
context:
space:
mode:
authorEmacsConf <emacsconf-org@gnu.org>2022-11-04 16:57:22 -0700
committerEmacsConf <emacsconf-org@gnu.org>2022-11-04 16:57:22 -0700
commit86fdd4a416191722b17f73109e735600c7c81156 (patch)
tree608e7f21593d449b65c06a9f1fa30a005b4c97dd /emacsconf-subed.el
parentd33f34beada6ba579059dfb5c3b442d4af666c3d (diff)
parent67d7aac3235f3fba73b82e1f7d2660fbb59e44dd (diff)
downloademacsconf-el-86fdd4a416191722b17f73109e735600c7c81156.tar.xz
emacsconf-el-86fdd4a416191722b17f73109e735600c7c81156.zip
Merge branch 'main' of git.emacsconf.org:pub/emacsconf-el
Diffstat (limited to 'emacsconf-subed.el')
-rw-r--r--emacsconf-subed.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacsconf-subed.el b/emacsconf-subed.el
index 93542ac..9aca0e0 100644
--- a/emacsconf-subed.el
+++ b/emacsconf-subed.el
@@ -149,15 +149,15 @@
"Open the caption file for this talk.
Create it if necessary."
(interactive)
- (require 'compile-media)
(let ((video-slug (org-entry-get (point) "VIDEO_SLUG")))
(find-file
- (or (car (directory-files emacsconf-captions-directory
+ (or (car (directory-files emacsconf-cache-dir
t
(concat (regexp-quote video-slug)
"--main\\.\\(srt\\|vtt\\)")))
(expand-file-name (concat video-slug "--main.vtt") "captions")))
(when (eobp)
+ (require 'compile-media)
(insert "WEBVTT\n\n0:00:00.000 --> "
(compile-media-msecs-to-timestamp
(compile-media-get-file-duration-ms (subed-guess-video-file)))