diff --git a/models.go b/models.go index 2779de0..e56c8d6 100644 --- a/models.go +++ b/models.go @@ -1,6 +1,9 @@ package imdbs -import "time" +import ( + "strings" + "time" +) // IMDbEntry is a struct that represents an IMDb entry (movie or series) type IMDbEntry struct { @@ -97,7 +100,7 @@ func (s IMDbJSON) TransformIntoIMDbEntry(id string, year int64) IMDbEntry { Rating: s.AggregateRating.RatingValue, RuntimeInMins: 0, Title: s.Name, - Type: s.Type, + Type: strings.Replace(s.Type, "TVSeries", "Series", -1), Year: year, }