From 2069f9a56c0813e3dc9ee93637cc598c396a9c78 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 5 Sep 2023 11:27:02 -0700 Subject: [PATCH] fix: url slug --- src/_data/tv.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_data/tv.js b/src/_data/tv.js index 8e7650f5..64e85cea 100644 --- a/src/_data/tv.js +++ b/src/_data/tv.js @@ -42,7 +42,7 @@ module.exports = async function () { episodes.push({ name: matchedEpisode['name'], title: matchedEpisode['title'], - url: `https://trakt.tv/shows/${matchedEpisode['slug']}`, + url: `https://trakt.tv/shows/${episode['show']['ids']['slug']}`, subtext, image: `https://cdn.coryd.dev/tv/${matchedEpisode['name'] @@ -69,7 +69,6 @@ module.exports = async function () { .toLowerCase()}.jpg` || 'https://cdn.coryd.dev/tv/missing-tv.jpg', episode: episode['episode']['number'], season: episode['episode']['season'], - slug: episode['show']['ids']['slug'], type: 'tv', }) }