diff options
author | Thanos Apollo <[email protected]> | 2023-09-27 15:42:53 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-27 15:42:53 +0300 |
commit | abfcd3f5f2d3bda28bae4eaf2173d92c162ebbc8 (patch) | |
tree | c0995665c8b27f48fa3c09e566b62013140c8adc | |
parent | 2d3ae1dbfced2a60b5533edc487d1922364ee6fd (diff) |
yeetube: (fix) remove unused variables
-rw-r--r-- | yeetube.el | 25 |
1 files changed, 12 insertions, 13 deletions
@@ -188,19 +188,18 @@ Example Usage: (defun yeetube-search (query) "Search for QUERY." (interactive "sYeetube Search: ") - (let ((is-youtube? (yeetube-youtube-p yeetube-query-url))) - (with-current-buffer - (url-retrieve-synchronously - (concat yeetube-query-url - "/search?q=" - (replace-regexp-in-string " " "+" query) - "&type=video") - t t 30) - (decode-coding-region (point-min) (point-max) 'utf-8) - (goto-char (point-min)) - (toggle-enable-multibyte-characters) - (yeetube-get-content-youtube) - (yeetube-buffer-create query yeetube-content 'yeetube-mode)))) + (with-current-buffer + (url-retrieve-synchronously + (concat yeetube-query-url + "/search?q=" + (replace-regexp-in-string " " "+" query) + "&type=video") + t t 30) + (decode-coding-region (point-min) (point-max) 'utf-8) + (goto-char (point-min)) + (toggle-enable-multibyte-characters) + (yeetube-get-content-youtube) + (yeetube-buffer-create query yeetube-content 'yeetube-mode))) (defun yeetube-get-content-youtube () "Get content from youtube." |