diff --git a/integrations/jikan/types.go b/integrations/jikan/types.go index 713cadf..7e85827 100644 --- a/integrations/jikan/types.go +++ b/integrations/jikan/types.go @@ -47,7 +47,6 @@ type Anime struct { } `json:"webp"` } `json:"images"` Synopsis string `json:"synopsis"` - Score float64 `json:"score"` Rank int `json:"rank"` Popularity int `json:"popularity"` Status string `json:"status"` diff --git a/web/components/anime/recommendations.templ b/web/components/anime/recommendations.templ index d81f9d6..4b0048a 100644 --- a/web/components/anime/recommendations.templ +++ b/web/components/anime/recommendations.templ @@ -14,7 +14,6 @@ templ Recommendations(recs []jikan.Anime) { Title: anime.DisplayTitle(), ImageURL: anime.ImageURL(), Synopsis: anime.Synopsis, - Score: int(anime.Score * 10), }) } diff --git a/web/components/anime_card.templ b/web/components/anime_card.templ index 5ed3b12..5e7d4ae 100644 --- a/web/components/anime_card.templ +++ b/web/components/anime_card.templ @@ -14,7 +14,6 @@ type AnimeCardProps struct { HideTitle bool // if true, do not render the default title block CurrentNode bool // if true, renders a div instead of an anchor tag (useful for graph nodes) Synopsis string // optional synopsis for hover detail - Score int // optional score for hover detail PlayHref string // optional play button href (anchored to poster) } @@ -61,21 +60,11 @@ templ animeCardPoster(props AnimeCardProps) { }
- if props.Synopsis != "" || props.Score > 0 { + if props.Synopsis != "" {
- if props.Score > 0 { -
- - - - { fmt.Sprintf("%d", props.Score) } -
- }
{ props.Title }
- if props.Synopsis != "" { -

{ props.Synopsis }

- } +

{ props.Synopsis }

} diff --git a/web/components/anime_list.templ b/web/components/anime_list.templ index ee29581..4ff897d 100644 --- a/web/components/anime_list.templ +++ b/web/components/anime_list.templ @@ -35,7 +35,6 @@ templ CatalogItem(anime jikan.Anime) { Title: anime.DisplayTitle(), ImageURL: anime.ImageURL(), Synopsis: anime.Synopsis, - Score: int(anime.Score * 10), PlayHref: fmt.Sprintf("/watch/%d/1", anime.MalID), }) }