foundation: fix fetching artist commentary.

The markup for the description changed from a <div> to a <h2>.
This commit is contained in:
evazion
2021-12-07 19:28:31 -06:00
parent e57e38b35f
commit c94fdef3b2

View File

@@ -93,9 +93,9 @@ module Sources
end
def artist_commentary_desc
header = page&.xpath("//div[text()='Description']")&.first
header = page&.xpath("//h2[text()='Description']")&.first
return nil if header.blank?
header&.parent&.search("div").to_a.fetch(1, nil)&.to_html
header&.parent&.search("div").first&.to_html
end
def dtext_artist_commentary_desc