Altered IMDbEntry.Type

This commit is contained in:
Andreas Schulte 2023-10-18 20:49:56 +02:00
parent aee9952b8a
commit b4fb15cf15
Signed by: andreas
GPG Key ID: DCD1B6A247B69DB6

View File

@ -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,
}