diff --git a/pages/index.js b/pages/index.js
index 76a3972..1201eaa 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -39,7 +39,7 @@ export default function Page ({episodes}) {
{episode["name"]}
Released: {episode["release_date"]}
- {episode["description"]}
+ {episode["description"].split(".")[0] + "." + episode["description"].split(".")[1] + "."}
@@ -81,7 +81,7 @@ export async function getStaticProps() {
console.log(`New access token: ${access_token}`);
let accessToken = access_token;
- const res = await fetch('https://api.spotify.com/v1/shows/4MqPuRVONKkOiu2SOAYgAf?si=a90b318f18ff4ace', {
+ const res = await fetch('https://api.spotify.com/v1/shows/4MqPuRVONKkOiu2SOAYgAf', {
headers: {
Authorization: 'Bearer ' + accessToken
@@ -96,7 +96,7 @@ export async function getStaticProps() {
console.log(episodes);
return {
- props: {episodes},
+ props: {episodes, revalidate: 60},
};
}
}
diff --git a/pages/shows.js b/pages/shows.js
index fc21c93..639e08e 100644
--- a/pages/shows.js
+++ b/pages/shows.js
@@ -165,7 +165,7 @@ const ldata = await lights.json();
const LightsOut = ldata;
return {
- props: {episodes, Remnants, LightsOut},
+ props: {episodes, Remnants, LightsOut, revalidate: 60},
};
}
}