From 9fb185aff7b1f36c30bd157ec446d9bad104d1ee Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Mon, 4 Jan 2016 23:03:16 +0100 Subject: [PATCH] shr-tag-video bug fix * shr.el (shr-tag-video): Protect against the `poster' being empty. --- lisp/net/shr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 979b0caeea5..0703171a436 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1361,7 +1361,7 @@ The preference is a float determined from `shr-prefer-media-type'." (start (point))) (unless url (setq url (car (shr--extract-best-source dom)))) - (if image + (if (> (length image) 0) (shr-tag-img nil image) (shr-insert " [video] ")) (shr-urlify start (shr-expand-url url)))) -- 2.39.5