diff options
author | Thanos Apollo <[email protected]> | 2023-09-29 00:40:52 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-29 00:40:52 +0300 |
commit | 5782e7ab0f9f862aeb4ac2fddab3b3468302cef5 (patch) | |
tree | a60cff584265a981d855d880c735c412b6ed9bee | |
parent | f4abd6e7a302aad0a064c3871c47c7f0e9867ea3 (diff) |
yeetube: hardcode youtube uri
-rw-r--r-- | yeetube.el | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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) |