diff options
author | Thanos Apollo <[email protected]> | 2023-07-04 11:19:38 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-07-04 11:19:38 +0300 |
commit | 613c3ce96301c3ca0658bb936f0050d6bf3973da (patch) | |
tree | 1c5d6527805fba7ff33628de88c7fd1310559f2b | |
parent | 1452e82dd26103364da6f55b8b31178605e5636d (diff) |
fix: Do not switch buffer after yeetube-play
-rw-r--r-- | yeetube.el | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -104,14 +104,12 @@ Example Usage: "Open the url at point in an `'org-mode buffer using 'yeetube-player'." (interactive) (let ((url (org-element-property - :raw-link (org-element-context))) - (buffer (get-buffer "*Yeetube Player*"))) + :raw-link (org-element-context)))) (shell-command (format "pkill -9 -f %s" (shell-quote-argument yeetube-player))) (when (string-prefix-p "http" url) (call-process-shell-command (format "%s %s" yeetube-player url) nil 0) - (message "Opening with %s" yeetube-player) - (switch-to-buffer buffer)))) + (message "Opening with %s" yeetube-player)))) ;; TODO: Check if video_type of videoid is short or video |