mirror of https://github.com/fmartingr/bazaar.git
fix(steam): ensure spaces are trimmed from name
This commit is contained in:
parent
ae380468e4
commit
ff52e1732a
|
@ -42,7 +42,7 @@ func (s *SteamShop) Get(u *url.URL) (*models.Product, error) {
|
|||
imgURL, _ := s.Find("img.game_header_image_full").Attr("src")
|
||||
// TODO: error logging
|
||||
|
||||
product.Name = s.Find("#appHubAppName").Text()
|
||||
product.Name = strings.TrimSpace(s.Find("#appHubAppName").Text())
|
||||
product.InStock = len(s.Find(".game_area_comingsoon").Nodes) == 0
|
||||
product.ImageURL = imgURL
|
||||
product.PriceText = priceText
|
||||
|
|
Loading…
Reference in New Issue