summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/yeetube.el b/yeetube.el
index c9e456a..d4330aa 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -269,6 +269,11 @@ This is used to download thumbnails from `yeetube-content', within
("Date" . "CAISAhAB")
("Views" . "CAMSAhAB")
("Rating" . "CAESAhAB")))
+
+(defun yeetube-get-filter-code (sort-by)
+ "Get filter code for sorting search results."
+ (cdr (assoc sort-by yeetube-filter-code-alist)))
+
;;;###autoload
(defun yeetube-search (query)
"Search for QUERY."