From 92dba48990dd5aec7ff8592d9e2bc7d84580bdad Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 18 Aug 2023 13:11:05 +0300 Subject: yeetube-search: Add type & timeout at 30s --- yeetube.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'yeetube.el') diff --git a/yeetube.el b/yeetube.el index 854a990..a148f7e 100644 --- a/yeetube.el +++ b/yeetube.el @@ -304,8 +304,9 @@ It's recommended you keep it as the default value." (url-retrieve-synchronously (concat yeetube-query-url "/search?q=" - (replace-regexp-in-string " " "+" query)) - t t) + (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) -- cgit v1.2.3