From b31c7154d79a14c358e053c4db9b089d52391731 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 6 Jul 2023 12:18:24 +0300 Subject: yeetube-insert-info: add warning if mpv is nil and update keys --- yeetube.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/yeetube.el b/yeetube.el index fbdfc38..de68449 100644 --- a/yeetube.el +++ b/yeetube.el @@ -303,17 +303,21 @@ then run this command interactively." "\n\n** Info" (format "\nDownload Directory: %s" yeetube-download-directory) (format "\nDownload as audio format: %s" yeetube-download-audio-format) - (format "\nYeetube Player: %s" yeetube-player)) + (if yeetube-player + (format "\nYeetube Player: %s" yeetube-player) + (format "\nYeetube Player: mpv not found. /Set this value manually or install mpv/"))) (when yeetube-display-info-keys (insert "\n\n*** Keybindings" "\n" "\n~RET~ -> Play Video\n" - "\n~d~ -> Download\n" + "\n~v~ -> Toggle Video on/off\n" + "\n~p~ -> Toggle Pause/Play\n" "\n~C-c C-o~ -> Open In Browser\n" - "\n~u~ -> Change search URL (youtube.com, any invidious instance or localhost)\n" - "\n~C~ -> Change Download Directory\n" + "\n~d~ -> Download\n" + "\n~D~ -> Change Download Directory\n" "\n~a~ -> Change Download (Audio) Format\n" + "\n~u~ -> Change search URL (youtube.com, any invidious instance or localhost)\n" "\n~q~ -> Quit\n"))) (defun yeetube-change-download-directory () -- cgit v1.2.3