aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-05 15:02:52 +0300
committerThanos Apollo <[email protected]>2023-07-05 18:18:11 +0300
commiteb1839c78606e6b909eece37e59fe9ba4960f908 (patch)
tree59200038e2975e2b98a1bab37471dd278ff92418
parenta56bfd3be2597f252125a5fbee3ac1b8842138a9 (diff)
fix: adjust for multiple urls in invidiousv1.0.1
invidious search does not auto translates spaces to "+". This fixes the issue ensuring every space in search QUERY is replaced with +
-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)