Skip to content

Commit

Permalink
Fix search image not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
maforget committed May 29, 2024
1 parent 0aa9924 commit ca3e1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AmazonScrapper/Data/Parser/Search/Cover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public Cover(HtmlNode node) : base(node)
/// <returns>the cover link</returns>
public override object Parse()
{
string[] imageLink = Node.SelectSingleNode(@".//img[@class='s-image']")?.Attributes["srcset"]
string[] imageLink = Node.SelectSingleNode(@".//img[contains(@class, 's-image')]")?.Attributes["srcset"]
.Value.Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries);

if (imageLink != null)
Expand Down

0 comments on commit ca3e1f8

Please sign in to comment.