Altered IMDbEntry.Type
This commit is contained in:
parent
aee9952b8a
commit
b4fb15cf15
@ -1,6 +1,9 @@
|
|||||||
package imdbs
|
package imdbs
|
||||||
|
|
||||||
import "time"
|
import (
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
// IMDbEntry is a struct that represents an IMDb entry (movie or series)
|
// IMDbEntry is a struct that represents an IMDb entry (movie or series)
|
||||||
type IMDbEntry struct {
|
type IMDbEntry struct {
|
||||||
@ -97,7 +100,7 @@ func (s IMDbJSON) TransformIntoIMDbEntry(id string, year int64) IMDbEntry {
|
|||||||
Rating: s.AggregateRating.RatingValue,
|
Rating: s.AggregateRating.RatingValue,
|
||||||
RuntimeInMins: 0,
|
RuntimeInMins: 0,
|
||||||
Title: s.Name,
|
Title: s.Name,
|
||||||
Type: s.Type,
|
Type: strings.Replace(s.Type, "TVSeries", "Series", -1),
|
||||||
Year: year,
|
Year: year,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user