foundation: fix fetching artist commentary.
The markup for the description changed from a <div> to a <h2>.
This commit is contained in:
@@ -93,9 +93,9 @@ module Sources
|
|||||||
end
|
end
|
||||||
|
|
||||||
def artist_commentary_desc
|
def artist_commentary_desc
|
||||||
header = page&.xpath("//div[text()='Description']")&.first
|
header = page&.xpath("//h2[text()='Description']")&.first
|
||||||
return nil if header.blank?
|
return nil if header.blank?
|
||||||
header&.parent&.search("div").to_a.fetch(1, nil)&.to_html
|
header&.parent&.search("div").first&.to_html
|
||||||
end
|
end
|
||||||
|
|
||||||
def dtext_artist_commentary_desc
|
def dtext_artist_commentary_desc
|
||||||
|
|||||||
Reference in New Issue
Block a user