From 037771c77ea1007b62d773400fef1ef151a76919 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 7 Feb 2024 08:51:12 +0200 Subject: Rename yeetube-sort-by -> yeetube-filter It's not a sorting value but rather a filter applied with the query. Using sort-by as the name might maybe users think it has to do with the tabulated-list sorting func --- yeetube.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yeetube.el b/yeetube.el index cffed92..bd54e31 100644 --- a/yeetube.el +++ b/yeetube.el @@ -73,7 +73,7 @@ Example Usage: :type 'string :group 'yeetube) -(defcustom yeetube-sort-by "Relevance" +(defcustom yeetube-filter "Relevance" "Sorty search results for value. Valid options include: @@ -270,9 +270,9 @@ This is used to download thumbnails from `yeetube-content', within ("Views" . "CAMSAhAB") ("Rating" . "CAESAhAB"))) -(defun yeetube-get-filter-code (sort-by) +(defun yeetube-get-filter-code (filter) "Get filter code for sorting search results." - (cdr (assoc sort-by yeetube-filter-code-alist))) + (cdr (assoc filter yeetube-filter-code-alist))) ;;;###autoload (defun yeetube-search (query) @@ -284,7 +284,7 @@ This is used to download thumbnails from `yeetube-content', within (replace-regexp-in-string " " "+" query) ;; Filter parameter to remove live videos. "&sp=" - (yeetube-get-filter-code yeetube-sort-by)) + (yeetube-get-filter-code yeetube-filter)) 'silent 'inhibit-cookies 30) (decode-coding-region (point-min) (point-max) 'utf-8) (goto-char (point-min)) -- cgit v1.2.3