fix(indexers): ggn fetch data from api (#397)

fix(indexers): fetch data from api
This commit is contained in:
ze0s 2022-08-03 14:27:13 +02:00 committed by GitHub
parent 5d80e48b54
commit 12e75e2604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,39 +58,41 @@ type Group struct {
CategoryName string `json:"categoryName"` CategoryName string `json:"categoryName"`
MasterGroup int `json:"masterGroup"` MasterGroup int `json:"masterGroup"`
Time string `json:"time"` Time string `json:"time"`
GameInfo struct { Tags []string `json:"tags"`
Screenshots []string `json:"screenshots"` Platform string `json:"platform"`
Trailer string `json:"trailer"` }
Rating string `json:"rating"`
MetaRating struct { type GameInfo struct {
Score string `json:"score"` Screenshots []string `json:"screenshots"`
Percent string `json:"percent"` Trailer string `json:"trailer"`
Link string `json:"link"` Rating string `json:"rating"`
} `json:"metaRating"` MetaRating struct {
IgnRating struct { Score string `json:"score"`
Score string `json:"score"` Percent string `json:"percent"`
Percent string `json:"percent"` Link string `json:"link"`
Link string `json:"link"` } `json:"metaRating"`
} `json:"ignRating"` IgnRating struct {
GamespotRating struct { Score string `json:"score"`
Score string `json:"score"` Percent string `json:"percent"`
Percent string `json:"percent"` Link string `json:"link"`
Link string `json:"link"` } `json:"ignRating"`
} `json:"gamespotRating"` GamespotRating struct {
Weblinks struct { Score string `json:"score"`
GamesWebsite string `json:"GamesWebsite"` Percent string `json:"percent"`
Wikipedia string `json:"Wikipedia"` Link string `json:"link"`
Giantbomb string `json:"Giantbomb"` } `json:"gamespotRating"`
GameFAQs string `json:"GameFAQs"` Weblinks struct {
PCGamingWiki string `json:"PCGamingWiki"` GamesWebsite string `json:"GamesWebsite"`
Steam string `json:"Steam"` Wikipedia string `json:"Wikipedia"`
Amazon string `json:"Amazon"` Giantbomb string `json:"Giantbomb"`
GOG string `json:"GOG"` GameFAQs string `json:"GameFAQs"`
HowLongToBeat string `json:"HowLongToBeat"` PCGamingWiki string `json:"PCGamingWiki"`
} `json:"weblinks"` Steam string `json:"Steam"`
} `json:"gameInfo"` Amazon string `json:"Amazon"`
Tags []string `json:"tags"` GOG string `json:"GOG"`
Platform string `json:"platform"` HowLongToBeat string `json:"HowLongToBeat"`
} `json:"weblinks"`
//`json:"gameInfo"`
} }
type Torrent struct { type Torrent struct {