[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed ec38a0b 317/389: Add function: subed-mpv-add-subtitl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed ec38a0b 317/389: Add function: subed-mpv-add-subtitles |
Date: |
Fri, 3 Dec 2021 11:00:49 -0500 (EST) |
branch: elpa/subed
commit ec38a0bc7f221220012dae473053f35b6f63e07b
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
Add function: subed-mpv-add-subtitles
---
subed/subed-mpv.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/subed/subed-mpv.el b/subed/subed-mpv.el
index 7ef3b38..36a28ae 100644
--- a/subed/subed-mpv.el
+++ b/subed/subed-mpv.el
@@ -315,6 +315,10 @@ See \"List of events\" in mpv(1)."
(subed-debug "Seeking player to focused subtitle: %S" cur-sub-start)
(subed-mpv-jump cur-sub-start))))
+(defun subed-mpv-add-subtitles (file)
+ "Load FILE as subtitles in mpv."
+ (subed-mpv--client-send `(sub-add ,file select)))
+
(defun subed-mpv-reload-subtitles ()
"Reload subtitle file from disk."
(subed-mpv--client-send '(sub-reload)))
- [nongnu] elpa/subed ba22919 289/389: Add subed-mpv-jump-to-current-subtitle, (continued)
- [nongnu] elpa/subed ba22919 289/389: Add subed-mpv-jump-to-current-subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 14ebbbb 293/389: subed-srt--subtitle-id-at-msecs: Return nil if no matching subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 2e18727 294/389: Pause video initially, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3d5902b 295/389: Reword comment, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3baf5c1 296/389: subed-mpv--client-filter: Store process mark in variable, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 08d5033 301/389: Remove unused variable subed-mode--enabled-p, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 070384b 302/389: subed--set-subtitle-loop: Don't croak on empty file, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 89df304 304/389: subed-srt--sanitize: Don't insert newline in empty buffer, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b0a4ff0 307/389: Fix parentheses, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8007c12 308/389: Make debugging window a bit smaller, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ec38a0b 317/389: Add function: subed-mpv-add-subtitles,
ELPA Syncer <=
- [nongnu] elpa/subed 7764909 324/389: Add some (require ...)s to prevent compiler warnings, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a084f5d 326/389: Improve comment, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed cd3af86 328/389: Silence checkdoc, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 29d8b84 337/389: Initial implementation of subed-vtt.el, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 6db0005 338/389: New function subed-mpv-play-video-from-url, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d3df6f2 347/389: Fix "test" target in Makefile, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 5b8c23a 348/389: New commands: subed-merge-with-next, subed-merge-with-previous, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a7b25c8 341/389: subed-vtt: Fix ID->timestamp and stop generating IDs, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9796a77 349/389: Merge branch 'sacha', ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed c4e3fec 352/389: Add error handling for subed-split-subtitle, ELPA Syncer, 2021/12/03