summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-08 09:23:03 +0200
committerThanos Apollo <[email protected]>2024-02-08 09:23:03 +0200
commitd807063fdb457ddaf918e5d18117c75171cccd9a (patch)
treea3b67cb0554eb772522f9d70176edf8b3af45974
parent039c3c6665cf047adac061d9569df9dfc90c719b (diff)
yeetube-mpv-play: Use torsocks, when enabled
-rw-r--r--yeetube-mpv.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el
index 4eb0096..474b88f 100644
--- a/yeetube-mpv.el
+++ b/yeetube-mpv.el
@@ -73,10 +73,14 @@
This function is not specific to just playing urls. Feel free to use
to play local files."
(yeetube-mpv-process
- (concat yeetube-mpv-path " "
+ (concat (when yeetube-mpv-enable-torsocks
+ (concat yeetube-mpv-torsocks " "))
+ yeetube-mpv-path " "
(shell-quote-argument input)
(when yeetube-mpv-disable-video " --no-video")))
- (message "yeetube: starting mpv process"))
+ (message (if yeetube-mpv-enable-torsocks
+ "yeetube: Starting mpv process (using torsocks)"
+ "yeetube: Starting mpv process")))
(defun yeetube-mpv-toggle-no-video-flag ()
"Toggle no video flag for mpv player."