From 2f3a891d0944a3b200d3dda949475bf9e1742f56 Mon Sep 17 00:00:00 2001
From: Tyler Hoang
Date: Sat, 9 May 2026 01:41:48 -0700
Subject: Add IMDb, Rotten Tomatoes, and Metacritic ratings to film detail
Fetches ratings from OMDB API in parallel with TMDB context. Displays
three side-by-side chips between the subtitle and watch log panels.
Requires OMDB_API_KEY in .env; degrades silently if missing or no match.
Co-Authored-By: Claude Sonnet 4.6
---
templates/detail.html | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
(limited to 'templates')
diff --git a/templates/detail.html b/templates/detail.html
index 83bd26a..5bf4b3f 100644
--- a/templates/detail.html
+++ b/templates/detail.html
@@ -62,6 +62,29 @@
{% endif %}
+ {% if ratings %}
+
+ {% if ratings.imdb %}
+
+ IMDb
+ {{ ratings.imdb }}
+
+ {% endif %}
+ {% if ratings.rt %}
+
+ Rotten Tomatoes
+ {{ ratings.rt }}
+
+ {% endif %}
+ {% if ratings.metacritic %}
+
+ Metacritic
+ {{ ratings.metacritic }}
+
+ {% endif %}
+
+ {% endif %}
+
Watch log
--
cgit v1.3-2-g0d8e