{{if .Data.Results}}
{{range .Data.Results}}
{{if eq .Media_type "movie"}}
{{else if eq .Media_type "person"}}
{{else if eq .Media_type "tv"}}
{{end}}
{{end}}
{{else if eq .Data.Total_pages 0}}
{{if .Poster_path}}
{{else if eq .Media_type "movie"}}
{{else if eq .Media_type "tv"}}
{{else if eq .Media_type "person"}}
{{end}}



{{.Name}}
{{if gt .Release_date.Year 1}}{{.Release_date.Year}}
{{end}} {{if eq .Media_type "tv"}}{{$.Strings.Search.series}}
{{else if eq .Media_type "movie"}}{{$.Strings.Search.film}}
{{else if eq .Media_type "person"}}{{$.Strings.Search.person}}
{{end}}{{.Strings.Search.not_found_quote}}
—{{.Strings.Search.not_found_character}} ({{.Strings.Search.not_found_title}}, {{.Strings.Search.not_found_code}} {{.Strings.Search.not_found_episode}})
{{else if gt .Data.Page .Data.Total_pages}}
{{end}}
{{.Strings.Search.too_far_quote}}
—{{.Strings.Search.too_far_character}} ({{.Strings.Search.too_far_title}})