diff options
author | Thanos Apollo <[email protected]> | 2023-07-05 10:52:54 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-07-05 18:14:01 +0300 |
commit | 88005d674884e3a45f0f6ea251011c4965618ba7 (patch) | |
tree | cf7baf796b6c78148ed0b51688ab0c95a6083722 | |
parent | 8988efc3b57d3fd75fc17772ee04e11256893ecd (diff) |
fix: remove unused variables
-rw-r--r-- | yeetube.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)))) |