]> git.eshelyaron.com Git - emacs.git/commitdiff
shr-tag-video bug fix
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 4 Jan 2016 22:03:16 +0000 (23:03 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 4 Jan 2016 22:03:30 +0000 (23:03 +0100)
* shr.el (shr-tag-video): Protect against the `poster' being
empty.

lisp/net/shr.el

index 979b0caeea59d1632019337a45fede48b6c737fb..0703171a436d5cbc584ef5421f09ff4646360bbc 100644 (file)
@@ -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))))