From a5f5878006768aedc5cdde5b4d66d12476dce105 Mon Sep 17 00:00:00 2001
From: Cory Dransfeldt <hi@coryd.dev>
Date: Sun, 13 Oct 2024 16:20:33 -0700
Subject: [PATCH] chore: add tv to sitemap

---
 views/feeds/sitemap.psql | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/views/feeds/sitemap.psql b/views/feeds/sitemap.psql
index 86dd3ad1..1f4bb3ae 100644
--- a/views/feeds/sitemap.psql
+++ b/views/feeds/sitemap.psql
@@ -39,6 +39,15 @@ WITH sitemap_data AS (
       g.name AS title,
       CONCAT('https://coryd.dev', g.url) AS url
   FROM optimized_genres g
+
+  UNION ALL
+
+  SELECT
+      s.last_watched_at AS content_date,
+      s.title,
+      CONCAT('https://coryd.dev', s.url) AS url
+  FROM optimized_shows s
+  WHERE s.last_watched_at IS NOT NULL
 )
 
 SELECT