From c94fdef3b280271a8c96f86f2d3d209dcdf970c6 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 7 Dec 2021 19:28:31 -0600 Subject: [PATCH] foundation: fix fetching artist commentary. The markup for the description changed from a
to a

. --- app/logical/sources/strategies/foundation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/logical/sources/strategies/foundation.rb b/app/logical/sources/strategies/foundation.rb index 82dcb3021..fe9df3503 100644 --- a/app/logical/sources/strategies/foundation.rb +++ b/app/logical/sources/strategies/foundation.rb @@ -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