Skip to content

Commit

Permalink
fix(tautulli): accept multiple guids (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
varoOP authored Nov 10, 2023
1 parent 7a9562b commit a5c0abe
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions internal/tautulli/tautulli.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ type Tautulli struct {
Title string `json:"title"`
} `json:"Account"`
Metadata struct {
GrandparentKey string `json:"grandparentKey"`
GrandparentTitle string `json:"grandparentTitle"`
GUID string `json:"guid"`
Index string `json:"index"`
LibrarySectionTitle string `json:"librarySectionTitle"`
ParentIndex string `json:"parentIndex"`
Title string `json:"title"`
Type string `json:"type"`
GrandparentKey string `json:"grandparentKey"`
GrandparentTitle string `json:"grandparentTitle"`
GUID plex.GUID `json:"guid"`
Index string `json:"index"`
LibrarySectionTitle string `json:"librarySectionTitle"`
ParentIndex string `json:"parentIndex"`
Title string `json:"title"`
Type string `json:"type"`
} `json:"Metadata"`
Event string `json:"event"`
}
Expand Down Expand Up @@ -60,11 +60,9 @@ func ToPlex(b []byte) (*plex.PlexWebhook, error) {
Title: t.Account.Title,
},
Metadata: plex.Metadata{
GrandparentKey: t.Metadata.GrandparentKey,
GrandparentTitle: t.Metadata.GrandparentTitle,
GUID: plex.GUID{
GUID: t.Metadata.GUID,
},
GrandparentKey: t.Metadata.GrandparentKey,
GrandparentTitle: t.Metadata.GrandparentTitle,
GUID: t.Metadata.GUID,
Index: index,
LibrarySectionTitle: t.Metadata.LibrarySectionTitle,
ParentIndex: parentIndex,
Expand Down

0 comments on commit a5c0abe

Please sign in to comment.