Przeglądaj źródła

Fix implied_photo_deep trying to use a string as an element

Found by using Html5ever parser
pull/6/head
Greg V 2 lat temu
rodzic
commit
2d380aa72b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      lib/implied.ex

+ 1
- 1
lib/implied.ex Wyświetl plik

@ -123,7 +123,7 @@ defmodule Microformats2.Items.ImpliedProperties do
only_nodes = Enum.reject(children, &is_bitstring/1)
if Enum.count(only_nodes) == 1 do
child = List.first(children)
child = List.first(only_nodes)
sec_imgs = direct_not_h_children_with_attr(child, "img", "src")
sec_objs = direct_not_h_children_with_attr(child, "object", "data")


Ładowanie…
Anuluj
Zapisz