summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)