aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-07 08:51:12 +0200
committerThanos Apollo <[email protected]>2024-02-07 08:51:12 +0200
commit037771c77ea1007b62d773400fef1ef151a76919 (patch)
treee07f22d40f8d00f066dc73b55bd83522ff13b5c0
parentce74dbd98241863810e9486ca3be6f4cf9fd4f2f (diff)
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
-rw-r--r--yeetube.el8
1 files 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))