summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/yeetube.el b/yeetube.el
index 0036d9a..b109b70 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -143,7 +143,10 @@ PREFIX [[URL/watch?v=VIDEOID][VIDEOTITLE ]]"
(let ((videoIds '())
(videoTitles '()))
(with-current-buffer
- (url-retrieve-synchronously (concat yeetube-query-url "/search?q=" query) t t)
+ (url-retrieve-synchronously (concat yeetube-query-url
+ "/search?q="
+ (replace-regexp-in-string " " "+" query))
+ t t)
(goto-char (point-min))
(toggle-enable-multibyte-characters)
(while (< (length videoIds) yeetube-results-limit)