From 0509f298cbd87141a865890ea78295bdce59d33e Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 13 Oct 2023 16:07:10 +0300 Subject: yeetube-mpv-play-url: Rename to yeetube-mpv-play This function is not specific to just playing urls. User may make custom functions to play local files with it, thus the change of name. --- yeetube-mpv.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'yeetube-mpv.el') diff --git a/yeetube-mpv.el b/yeetube-mpv.el index 6c59552..22c78ae 100644 --- a/yeetube-mpv.el +++ b/yeetube-mpv.el @@ -50,11 +50,14 @@ (start-process-shell-command "yeetube" nil command)))) -(defun yeetube-mpv-play-url (url) - "Start yeetube process to play URL using mpv." +(defun yeetube-mpv-play (input) + "Start yeetube process to play INPUT using mpv. + +This function is not specific to just playing urls. Feel free to use +to play local files." (yeetube-mpv-process (concat yeetube-mpv-path " " - (shell-quote-argument url) + (shell-quote-argument input) (when yeetube-mpv-disable-video " --no-video"))) (message "yeetube: starting mpv process")) -- cgit v1.2.3