diff options
-rw-r--r-- | yeetube-mpv.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el index f0c7881..4eb0096 100644 --- a/yeetube-mpv.el +++ b/yeetube-mpv.el @@ -40,6 +40,15 @@ (defvar yeetube-mpv-torsocks (executable-find "torsocks") "Path to torsocks executable.") +(defun yeetube-mpv-toggle-torsocks () + "Toggle torsocks." + (interactive) + (pcase yeetube-mpv-torsocks + ('t (setf yeetube-mpv-torsocks nil) + (message "yeetube: Torsocks disabled")) + ('nil (setf yeetube-mpv-torsocks t) + (message "yeetube: Torsocks enabled")))) + (defun yeetube-mpv-check () "Check if mpv and yt-dlp is installed." (unless (and (executable-find "mpv") |