summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-03 23:57:31 +0300
committerThanos Apollo <[email protected]>2023-08-03 23:57:31 +0300
commit6dd1290ddb25bcce9263bfdd5983ec8c9b00e529 (patch)
tree2f946f0828fae3c000ecb719261ac04064e76d4b
parent08d4332d2ca9048f122fe8ac41f51301cd651da0 (diff)
yeetube-change-query-url: Redo with argument input
-rw-r--r--yeetube.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/yeetube.el b/yeetube.el
index 1443261..2f08507 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -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)