diff --git a/cmd/dealsbot/api/epic.go b/cmd/dealsbot/api/epic.go index b611d21..3588663 100644 --- a/cmd/dealsbot/api/epic.go +++ b/cmd/dealsbot/api/epic.go @@ -126,7 +126,7 @@ func (e EpicStruct) Load() error { image := "" for _, keyImage := range element.KeyImages { - if keyImage.Type == "DieselStoreFrontWide" { + if keyImage.Type == "OfferImageWide" { image = keyImage.Url } } diff --git a/cmd/dealsbot/api/gogfront.go b/cmd/dealsbot/api/gogfront.go index 8941dc1..1521d02 100644 --- a/cmd/dealsbot/api/gogfront.go +++ b/cmd/dealsbot/api/gogfront.go @@ -70,11 +70,11 @@ func (e GogFrontStruct) Load() error { continue } for _, a := range t.Attr { - if !(a.Key == "id" && a.Val == "giveaway") { + if !(a.Key == "class" && a.Val == "giveaway__overlay-link") { continue } for _, attr := range t.Attr { - if attr.Key != "ng-href" { + if attr.Key != "href" { continue } appID := regexAppid.FindStringSubmatch(attr.Val) diff --git a/cmd/dealsbot/main.go b/cmd/dealsbot/main.go index ec25ba2..179a769 100644 --- a/cmd/dealsbot/main.go +++ b/cmd/dealsbot/main.go @@ -64,7 +64,8 @@ func main() { api.NewSteamApi(logger), api.NewGogFrontApi(logger), api.NewGogApi(logger), - api.NewHumbleBundleApi(logger)) + api.NewHumbleBundleApi(logger), + ) for _, a := range apis { err := a.Load() if err != nil {