mirror of
https://github.com/FJurmanovic/sugarr.git
synced 2026-11-11 07:41:08 +00:00
36 lines
828 B
Go
36 lines
828 B
Go
package model
|
|
|
|
// Movie represents a movie from the Jellyfin library.
|
|
type Movie struct {
|
|
Name string
|
|
Year int
|
|
IMDbID string
|
|
TMDbID string
|
|
Genres []string
|
|
CommunityRating float64
|
|
IsFavorite bool
|
|
PlayCount int
|
|
}
|
|
|
|
// TMDbMovie is a movie record returned by the TMDb API.
|
|
type TMDbMovie struct {
|
|
ID int
|
|
Title string
|
|
Year int
|
|
}
|
|
|
|
// MovieSuggestion is a raw suggestion from the LLM or TMDb fallback.
|
|
type MovieSuggestion struct {
|
|
Title string `json:"title"`
|
|
Year int `json:"year"`
|
|
Reason string `json:"reason"`
|
|
}
|
|
|
|
// Recommendation is a resolved movie recommendation ready to return to the user.
|
|
type Recommendation struct {
|
|
Title string `json:"title"`
|
|
Year int `json:"year"`
|
|
TMDbID int `json:"tmdb_id"`
|
|
Reason string `json:"reason"`
|
|
}
|