summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-05 10:52:54 +0300
committerThanos Apollo <[email protected]>2023-07-05 18:14:01 +0300
commit88005d674884e3a45f0f6ea251011c4965618ba7 (patch)
treecf7baf796b6c78148ed0b51688ab0c95a6083722
parent8988efc3b57d3fd75fc17772ee04e11256893ecd (diff)
fix: remove unused variables
-rw-r--r--yeetube.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/yeetube.el b/yeetube.el
index 5af0873..fe03ab7 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -272,7 +272,7 @@ then run this command interactively."
"\n~RET~ -> Play Video\n"
"\n~d~ -> Download\n"
"\n~C-c C-o~ -> Open In Browser\n"
- "\n~u~ -> Change search URL (youtube.com or any invidious instance)\n"
+ "\n~u~ -> Change search URL (youtube.com, any invidious instance or localhost)\n"
"\n~C~ -> Change Download Directory\n"
"\n~a~ -> Change Download (Audio) Format\n"
"\n~q~ -> Quit\n")))
@@ -296,9 +296,9 @@ then run this command interactively."
(interactive)
(setq yeetube-query-url (read-string "URL: "))
(when (string-prefix-p "localhost" yeetube-query-url)
- (setq port (read-string "Port: "))
- (setq yeetube-query-url (concat "http://localhost:" port)))
- (unless (string-prefix-p "http://" yeetube-query-url)
+ (setq yeetube-query-url (concat "http://localhost:" (read-string "Port: "))))
+ (unless (or (string-prefix-p "http://" yeetube-query-url)
+ (string-prefix-p "https://" yeetube-query-url))
(setq yeetube-query-url (concat "https://" yeetube-query-url)))
(when (string-suffix-p "/" yeetube-query-url)
(setq yeetube-query-url (substring yeetube-query-url 0 -1))))