mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
remove movie-cache for now
not being used.
This commit is contained in:
parent
1d4988c4dd
commit
83a8c2c071
1 changed files with 0 additions and 12 deletions
|
@ -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 a new issue