summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-07 08:32:49 +0300
committerThanos Apollo <[email protected]>2023-07-07 08:32:49 +0300
commit14c593711d66fba6810eea775f4e2360d900d822 (patch)
treed0e19a094ddbb5732fea360daa92641778473582
parent61a1b9449cd5c9832f2eb939c131e4bc21c33562 (diff)
fix(yeetube-search): fix is-youtube?
Change to check yeetube-query-url.
-rw-r--r--yeetube.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/yeetube.el b/yeetube.el
index 92c7e7c..4bd1882 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -177,12 +177,13 @@ PREFIX [[URL/watch?v=VIDEOID][VIDEOTITLE ]]"
prefix url video-id
(yeetube-fix-title video-title)))))
+
(defun yeetube-search (query)
"Search for QUERY."
(interactive "sYeetube Search: ")
(let ((video-ids '())
(video-titles '())
- (is-youtube? (yeetube-check-if-youtube query)))
+ (is-youtube? (yeetube-check-if-youtube yeetube-query-url)))
(with-current-buffer
(url-retrieve-synchronously
(concat yeetube-query-url