diff options
author | Thanos Apollo <[email protected]> | 2023-08-03 23:57:31 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-03 23:57:31 +0300 |
commit | 6dd1290ddb25bcce9263bfdd5983ec8c9b00e529 (patch) | |
tree | 2f946f0828fae3c000ecb719261ac04064e76d4b | |
parent | 08d4332d2ca9048f122fe8ac41f51301cd651da0 (diff) |
yeetube-change-query-url: Redo with argument input
-rw-r--r-- | yeetube.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -432,10 +432,10 @@ prompt blank to keep the default name." (when (equal yeetube-download-audio-format "no") (setq yeetube-download-audio-format nil))) -(defun yeetube-change-query-url () - "Change `yeetube-query-url'." - (interactive) - (setq yeetube-query-url (read-string "URL: ")) +(defun yeetube-change-query-url (url) + "Change `yeetube-query-url' to URL." + (interactive "sURL:") + (setq yeetube-query-url url) (when (string-prefix-p "localhost" yeetube-query-url) (setq yeetube-query-url (concat "http://localhost:" (read-string "Port: ")))) (unless (or (string-prefix-p "http://" yeetube-query-url) |