trim spaces from titles
This commit is contained in:
parent
1d5c7056be
commit
0b97f282e2
6 changed files with 12 additions and 6 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"log/slog"
|
||||
"net/http"
|
||||
"regexp"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type HumbleBundleStruct struct {
|
||||
|
@ -117,7 +118,7 @@ func (e HumbleBundleStruct) Load() error {
|
|||
continue
|
||||
}
|
||||
id := fmt.Sprintf("%v%v", e.idPrefix, appID[1])
|
||||
title := product.TileName
|
||||
title := strings.TrimSpace(product.TileName)
|
||||
url := fmt.Sprintf("%v%v", e.baseUrl, appID[1])
|
||||
|
||||
e.deals[id] = Deal{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue