summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-09 20:23:01 +0200
committerThanos Apollo <[email protected]>2024-01-09 20:23:01 +0200
commitcd5cd8aabd0db468a0ba60cab15584fa1401a88b (patch)
tree8b00fbb421dbf605b5f77eae2cdc38efdddb4728
parent8d5d7ea41d36330f16388a224f02847e990ce88d (diff)
yeetube-get: Redo with tabulated-list-get-id
-rw-r--r--yeetube.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/yeetube.el b/yeetube.el
index b05b57e..23e1080 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -110,9 +110,7 @@ Keywords:
- :channel"
(unless (keywordp keyword)
(error "Value `%s' is not a keyword" keyword))
- (let ((video-info
- (cl-getf (nth (- (line-number-at-pos) 1) (reverse yeetube-content)) keyword)))
- video-info))
+ (cl-getf (tabulated-list-get-id) keyword))
(defun yeetube-get-url ()
"Get video url."