diff options
-rw-r--r-- | yeetube.el | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -114,9 +114,6 @@ It's recommended you keep it as the default value." (define-key yeetube-mode-map (kbd "P") 'yeetube-play-saved-video) yeetube-mode-map)) - -(defvar yeetube--currently-playing nil) - (defvar yeetube--yt-dlp (executable-find "yt-dlp")) (defvar yeetube--video-ids nil) @@ -393,8 +390,7 @@ then run this command interactively." (format "\nDownload as audio format: %s" yeetube-download-audio-format) (if yeetube-player (format "\nYeetube Player: %s" yeetube-player) - (format "\nYeetube Player: mpv not found. /Set this value manually or install mpv/")) - (format "\nLast Played: %s" yeetube--currently-playing)) + (format "\nYeetube Player: mpv not found. /Set this value manually or install mpv/"))) (when yeetube-display-info-keys (insert "\n\n*** Keybindings" @@ -436,20 +432,6 @@ then run this command interactively." (when (string-suffix-p "/" yeetube-query-url) (setq yeetube-query-url (substring yeetube-query-url 0 -1)))) -(defun yeetube--get-title () - "Get the title of the latest video/song played." - (push-mark) - (search-backward yeetube-results-prefix) - (set-mark-command nil) - (end-of-visual-line) - (let ((title-context (org-link--context-from-region))) - (setq yeetube--currently-playing - (format "%s" - (replace-regexp-in-string yeetube-results-prefix "" title-context)))) - (pop-mark) - (pop-mark) - (goto-char (mark))) - (defun yeetube-update-info (symbol-name new-value _operation _where) "Update information for SYMBOL-NAME with NEW-VALUE. @@ -467,8 +449,7 @@ OPERATION & WHERE are required to work with ='add-variable-watcher." ('yeetube-player "Yeetube Player:") ('yeetube-download-directory "Download Directory:") ('yeetube-download-audio-format "Download as audio format:") - ('yeetube-query-url "searching:") - ('yeetube--currently-playing "Last Played:"))) + ('yeetube-query-url "searching:"))) (buffer-cur (buffer-name))) (switch-to-buffer (get-buffer "*Yeetube Search*")) (setq-local buffer-read-only nil) @@ -494,7 +475,6 @@ OPERATION & WHERE are required to work with ='add-variable-watcher." (add-variable-watcher 'yeetube-player #'yeetube-update-info) (add-variable-watcher 'yeetube-download-audio-format #'yeetube-update-info) (add-variable-watcher 'yeetube-query-url #'yeetube-update-info) -(add-variable-watcher 'yeetube--currently-playing #'yeetube-update-info) (provide 'yeetube) ;;; yeetube.el ends here |