mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-24 18:51:53 +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]);
|
}, [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(() => {
|
React.useEffect(() => {
|
||||||
if (streamData.type === "show") {
|
if (streamData.type === "show") {
|
||||||
setSeasonList(streamData.seasons);
|
setSeasonList(streamData.seasons);
|
||||||
|
Loading…
Reference in New Issue
Block a user