summaryrefslogtreecommitdiff
path: root/yeetube-mpv.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2025-01-17 03:48:42 +0200
committerThanos Apollo <[email protected]>2025-01-17 03:48:42 +0200
commit0179d91cfffbc37f2c136a76e94aaeb4c74a649f (patch)
tree7534b093ea2a285a3942e88dd56d8a11c0667109 /yeetube-mpv.el
parentd3437030bcd8d64b2e5a3bc579e2f2f0b4581d1f (diff)
parent8cd565b3a251654c606f3694fffb640f46f18b5e (diff)
Merge branch 'v2.1.8'
* Rewrite of tabulated-list format. * Update mpv configuration options. * Fix thumbnail retrieval issues.
Diffstat (limited to 'yeetube-mpv.el')
-rw-r--r--yeetube-mpv.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el
index 2e8325a..789e604 100644
--- a/yeetube-mpv.el
+++ b/yeetube-mpv.el
@@ -36,6 +36,11 @@
:type 'boolean
:group 'yeetube)
+(defcustom yeetube-mpv-additional-flags nil
+ "Additional flags to pass to mpv."
+ :type 'string
+ :group 'yeetube)
+
(defvar yeetube-mpv-torsocks (executable-find "torsocks")
"Path to torsocks executable.")
@@ -64,9 +69,9 @@ Accepted values include: 1080, 720, 480, 360, 240, 144")
(interactive)
(pcase yeetube-mpv-torsocks
('t (setf yeetube-mpv-torsocks nil)
- (message "yeetube: Torsocks disabled"))
+ (message "yeetube: Torsocks disabled"))
('nil (setf yeetube-mpv-torsocks t)
- (message "yeetube: Torsocks enabled"))))
+ (message "yeetube: Torsocks enabled"))))
(defun yeetube-mpv-check ()
"Check if mpv and yt-dlp is installed."
@@ -105,7 +110,8 @@ to play local files."
(yeetube-mpv-ytdl-format-video-quality yeetube-mpv-video-quality)
" "
(shell-quote-argument input)
- (when yeetube-mpv-disable-video " --no-video")))
+ (when yeetube-mpv-disable-video " --no-video")
+ yeetube-mpv-additional-flags))
(message (if yeetube-mpv-enable-torsocks
"yeetube: Starting mpv process (using torsocks)"
"yeetube: Starting mpv process"))