Skip to content

Commit

Permalink
fixed imdb rating
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 7, 2023
1 parent 730b248 commit 255fc30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/backend/cron/movies.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (c *CronService) movieCron(cronjob *model.Crontab) error {
Genre: imdbMovie.Genre,
Director: imdbMovie.Director,
Actors: imdbMovie.Actors,
ImdbRating: imdbMovie.imdbRating,
ImdbRating: imdbMovie.ImdbRating,
Description: imdbMovie.Plot, // we get this from imdb as tu-fim does truncate their plot
FilesID: file.File,
Files: file,
Expand All @@ -128,7 +128,7 @@ type imdbResults struct {
Director string
Actors string
Plot string
imdbRating string
ImdbRating string `json:"imdbRating"`
}

func getIMDB(id string) (*imdbResults, error) {
Expand Down

0 comments on commit 255fc30

Please sign in to comment.