summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-25 04:58:16 +0200
committerThanos Apollo <[email protected]>2024-02-25 04:58:16 +0200
commitba3f0987d4af95c53925a4746a6379df66ec3e54 (patch)
treefedc12c768e9429929242838ea895797e4a71208
parent7ffab51fe194aa5962884cf2d935454736bd4cda (diff)
yeetube-get-content: If not yeetube-display-thumbnails return "nil"
-rw-r--r--yeetube.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/yeetube.el b/yeetube.el
index 9d8112b..baa3572 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -417,12 +417,14 @@ SUBSTRING-END is the end of the string to return, interger."
:channel channel
:thumbnail thumbnail
:date (replace-regexp-in-string "Streamed " "" date)
- :image (format "[[%s.jpg]]" (expand-file-name
+ :image (if yeetube-display-thumbnails
+ (format "[[%s.jpg]]" (expand-file-name
(replace-regexp-in-string
"\\(.*\\)\\(\\(.\\{10\\}\\)\\)$"
"\\2"
thumbnail)
- temporary-file-directory)))
+ temporary-file-directory))
+ "nil"))
yeetube-content))))))
(add-variable-watcher 'yeetube-saved-videos #'yeetube-update-saved-videos-list)