fix(steam): ensure spaces are trimmed from name

This commit is contained in:
Felipe Martin Garcia 2022-08-07 12:36:14 +02:00
parent ae380468e4
commit ff52e1732a
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 1 additions and 1 deletions

View File

@ -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