[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mpv 9fc833bf34 12/12: Rename mpv-enqueue to mpv-playlist-a
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mpv 9fc833bf34 12/12: Rename mpv-enqueue to mpv-playlist-append and simplify |
Date: |
Mon, 1 Aug 2022 09:58:52 -0400 (EDT) |
branch: elpa/mpv
commit 9fc833bf348cbea0b386801fb333e7b323bed0f6
Author: Johann Klähn <johann@jklaehn.de>
Commit: Johann Klähn <johann@jklaehn.de>
Rename mpv-enqueue to mpv-playlist-append and simplify
---
mpv.el | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/mpv.el b/mpv.el
index 2988a60c30..c8eff4d293 100644
--- a/mpv.el
+++ b/mpv.el
@@ -462,17 +462,18 @@ See `mpv-start' if you need to pass further arguments and
(mpv-start (expand-file-name path)))
;;;###autoload
-(defun mpv-enqueue (url &rest args)
- "Enqueue URL to the current mpv playlist and optionally set ARGS."
+(defun mpv-playlist-append (url &rest args)
+ "Append URL to the current mpv playlist.
+
+If ARGS are provided, they are passed as per-file options to mpv."
(interactive "sURL: ")
- (if args
- (mpv-run-command "loadfile" url "append"
- (string-join
- (mapcar (lambda (arg)
- (substring arg 2))
- args)
- ","))
- (mpv-run-command "loadfile" url "append"))
+ (mpv-run-command "loadfile" url "append"
+ (string-join
+ (mapcar (lambda (arg)
+ (string-trim-left arg "--"))
+ args)
+ ","))
+
(thread-last
(mpv-get-property "playlist-count")
1-
- [nongnu] elpa/mpv updated (1d2629ba36 -> 9fc833bf34), ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv 03ca4a6700 02/12: Fixes time formatting, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv 191081e577 03/12: Fixes mpv-quit condition, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv de7a9a6d01 07/12: Merge pull request #23 from efimerspan/feature-listing-commands, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv d9125d8d1d 09/12: Use index as parameters to playlist and chapter functions, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv e10e14ff2b 10/12: Cosmetic changes to docstrings, messages and function signatures, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv 31b630d192 11/12: Rename mpv-entry-format to mpv-entry-with-offset-format, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv a43b1813fc 05/12: Makes listing functions use built-in Emacs completion APIs, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv fb775e339b 08/12: Use format-spec for mpv-entry-format, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv 9fc833bf34 12/12: Rename mpv-enqueue to mpv-playlist-append and simplify,
ELPA Syncer <=
- [nongnu] elpa/mpv e5a6c76612 01/12: Adds listing interactive functions and other commands, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv 331aeb6e26 04/12: Adds completion categories, ELPA Syncer, 2022/08/01
- [nongnu] elpa/mpv 028d85efae 06/12: Notify of AB-loop status upon invocation, ELPA Syncer, 2022/08/01