summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-25 04:32:47 +0200
committerThanos Apollo <[email protected]>2024-02-25 04:32:47 +0200
commit9d91bc23ce9599ca89921c0f2b11be039da49887 (patch)
tree1ac7654ed6598c10ad7c7d59b563165066cfd2f9
parentf1d8cb5e5590497d5dc8fc80414fbc5a19a41b86 (diff)
yeetube-content: Specify image path
-rw-r--r--yeetube.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/yeetube.el b/yeetube.el
index 2e33e63..2ea8262 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -414,7 +414,13 @@ SUBSTRING-END is the end of the string to return, interger."
:duration video-duration
:channel channel
:thumbnail thumbnail
- :date (replace-regexp-in-string "Streamed " "" date))
+ :date (replace-regexp-in-string "Streamed " "" date)
+ :image (format "[[%s.jpg]]" (expand-file-name
+ (replace-regexp-in-string
+ "\\(.*\\)\\(\\(.\\{10\\}\\)\\)$"
+ "\\2"
+ thumbnail)
+ temporary-file-directory)))
yeetube-content))))))
(add-variable-watcher 'yeetube-saved-videos #'yeetube-update-saved-videos-list)