From 83a8c2c071eda4a78cdd7f92d768f639e32050af Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Fri, 6 Aug 2021 22:13:37 +0100 Subject: [PATCH] remove movie-cache for now not being used. --- src/views/Movie.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/views/Movie.js b/src/views/Movie.js index e7aadafc..d3d8d1b4 100644 --- a/src/views/Movie.js +++ b/src/views/Movie.js @@ -69,18 +69,6 @@ export function MovieView(props) { } }, [episode, streamData, setStreamUrl, season]); - React.useEffect(() => { - // Cache streamData continue watching on home page - let movieCache = JSON.parse(localStorage.getItem("movie-cache") || "{}"); - - if(!movieCache[streamData.source]) movieCache[streamData.source] = {} - movieCache[streamData.source][streamData.slug] = { - cachedAt: Date.now() - } - - localStorage.setItem("movie-cache", JSON.stringify(movieCache)); - }, [streamData]) - React.useEffect(() => { if (streamData.type === "show") { setSeasonList(streamData.seasons);