1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

remove movie-cache for now

not being used.
This commit is contained in:
James Hawkins 2021-08-06 22:13:37 +01:00
parent 1d4988c4dd
commit 83a8c2c071

View file

@ -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);