summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-03 23:56:54 +0300
committerThanos Apollo <[email protected]>2023-08-03 23:56:54 +0300
commit08d4332d2ca9048f122fe8ac41f51301cd651da0 (patch)
treee7104c192c8ab05dac6dba5e2adc7e0aae384680
parentc523227cf09a00bb8c342b3102140ec2fa82a6dd (diff)
yeetube-play-url: put last played url to a var
-rw-r--r--yeetube.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/yeetube.el b/yeetube.el
index 9cbdfec..1443261 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -148,6 +148,7 @@ It's recommended you keep it as the default value."
(defun yeetube-play-url (url)
"Open URL using yeetube-player."
(when (string-prefix-p "http" url)
+ (setq yeetube-last-played url)
(if (string-match "mpv" yeetube-player)
(shell-command (format "pkill -9 -f mpv"))
(shell-command (format "pkill -9 -f %s" (shell-quote-argument yeetube-player))))