diff options
author | Thanos Apollo <[email protected]> | 2023-07-05 15:02:52 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-07-05 18:18:11 +0300 |
commit | eb1839c78606e6b909eece37e59fe9ba4960f908 (patch) | |
tree | 59200038e2975e2b98a1bab37471dd278ff92418 | |
parent | a56bfd3be2597f252125a5fbee3ac1b8842138a9 (diff) |
fix: adjust for multiple urls in invidious
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.el | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |