Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Handle new Guid Metadata key
Browse files Browse the repository at this point in the history
  • Loading branch information
hashworks committed Jul 29, 2022
1 parent d117ddc commit 229f840
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ type Metadata struct {
Genre []Filter `json:"Genre"`
Country []Filter `json:"Country"`
Collection []Filter `json:"Collection"`

Guids []Guid `json:"Guid"` // We need to handle this case since the Golang JSON decoder is case-insensitive https://pkg.go.dev/encoding/json#Unmarshal
}

type Guid struct {
Id string `json:"id"`
}

func (m Metadata) IsEpisode() bool {
Expand Down

0 comments on commit 229f840

Please sign in to comment.