mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 01:05:08 +01:00
remove movie-cache for now
not being used.
This commit is contained in:
parent
1d4988c4dd
commit
83a8c2c071
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user