From 0a0f300536b1454867043878533b0703fadf03e0 Mon Sep 17 00:00:00 2001 From: l3uddz Date: Sat, 18 Sep 2021 09:56:42 +0100 Subject: [PATCH] omdb: make Rated accessible via filters Closes #28 --- media/omdb/media.go | 1 + media/omdb/struct.go | 1 + 2 files changed, 2 insertions(+) diff --git a/media/omdb/media.go b/media/omdb/media.go index a8f86ef..be328ac 100644 --- a/media/omdb/media.go +++ b/media/omdb/media.go @@ -66,5 +66,6 @@ func (c *Client) GetItem(imdbId string) (*Item, error) { ImdbVotes: util.Atoi(util.StripNonNumeric(b.ImdbVotes), 0), Language: b.Language, Country: b.Country, + Rated: b.Rated, }, nil } diff --git a/media/omdb/struct.go b/media/omdb/struct.go index 513cfc7..441b6c5 100644 --- a/media/omdb/struct.go +++ b/media/omdb/struct.go @@ -40,4 +40,5 @@ type Item struct { ImdbVotes int `json:"ImdbVotes,omitempty"` Language string `json:"Language,omitempty"` Country string `json:"Country,omitempty"` + Rated string `json:"Rated,omitempty"` }