aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-03-17 14:04:14 +0100
committermarty hiatt <martianhiatus@riseup.net>2024-03-17 14:04:14 +0100
commit93452494d1d0437487d7094c8ccdf6cdb47bb8c4 (patch)
treed3a08efbc241356d472dadf20e08c8a140be2f18 /lisp/mastodon-tl.el
parent3c1d3150e1be8fe23948a0adb0f5341227532fb5 (diff)
condition-case for mpv-start
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 0bfa613..a35ae5e 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1365,7 +1365,11 @@ in which case play first video or gif from current toot."
(if (mastodon-tl--media-video-p type)
(progn
(message "'q' to kill mpv.")
- (mpv-start "--loop" url))
+ (condition-case x
+ (mpv-start "--loop" url)
+ (void-function
+ (message "Looks like mpv.el not installed. Error: %s"
+ (error-message-string x)))))
(message "no moving image here?"))
(message "no moving image here?"))))