From 5782e7ab0f9f862aeb4ac2fddab3b3468302cef5 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 29 Sep 2023 00:40:52 +0300 Subject: yeetube: hardcode youtube uri --- yeetube.el | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'yeetube.el') diff --git a/yeetube.el b/yeetube.el index cb5aeee..e5f9ab5 100644 --- a/yeetube.el +++ b/yeetube.el @@ -51,12 +51,6 @@ :safe #'stringp :group 'yeetube) -(defcustom yeetube-query-url "https://www.youtube.com" - "Search URL." - :type 'string - :safe #'stringp - :group 'yeetube) - (defcustom yeetube-download-audio-format nil "Select download video as audio FORMAT. If nil download output will be the default format. @@ -213,8 +207,7 @@ WHERE indicates where in the buffer the update should happen." (interactive "sYeetube Search: ") (with-current-buffer (url-retrieve-synchronously - (concat yeetube-query-url - "/search?q=" + (concat "https://youtube.com/search?q=" (replace-regexp-in-string " " "+" query) ;; Filter parameter to remove live videos. "&sp=EgQQASAB") @@ -222,7 +215,7 @@ WHERE indicates where in the buffer the update should happen." (decode-coding-region (point-min) (point-max) 'utf-8) (goto-char (point-min)) (toggle-enable-multibyte-characters) - (yeetube-get-content-youtube) + (yeetube-get-content) (yeetube-buffer-create query yeetube-content 'yeetube-mode))) (defun yeetube-get-item (query) -- cgit v1.2.3