diff --git a/.gitignore b/.gitignore index 94e3cca..08a5bd6 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,5 @@ backend/video/segments downloads -backend/lisa/scripts -backend/lisa/setup -*.exe \ No newline at end of file +*.exe +backend/lisa \ No newline at end of file diff --git a/LiSA.spec b/LiSA.spec index b0619d1..3c27298 100644 --- a/LiSA.spec +++ b/LiSA.spec @@ -10,7 +10,7 @@ a = Analysis( ['backend\\LiSA.py'], pathex=[], binaries=[('ffmpeg.exe', '.')], - datas=[('backend/defaults', 'defaults'), ('backend/sql_queries', 'sql_queries'), ('backend/scripts', 'scripts'), + datas=[('backend/defaults', 'defaults'), ('backend/sql_queries', 'sql_queries'), ('backend/config/config.json', '.')], hiddenimports=[], hookspath=[], diff --git a/src/screens/animeDetailsScreen.js b/src/screens/animeDetailsScreen.js index 0bd4b18..d65d269 100644 --- a/src/screens/animeDetailsScreen.js +++ b/src/screens/animeDetailsScreen.js @@ -51,6 +51,10 @@ export default function AnimeDetailsScreen() { const { loading } = useSelector((state) => state.animeSearchList); useEffect(() => { + if (window) { + window?.scrollTo(0, 0); + } + if (details.recommendation) { dispatch(getRecommendations(details.recommendation)); } diff --git a/src/screens/exploreScreen.js b/src/screens/exploreScreen.js index 069efa1..5e05435 100644 --- a/src/screens/exploreScreen.js +++ b/src/screens/exploreScreen.js @@ -25,6 +25,13 @@ const ExploreScreen = () => { }; const dispatch = useDispatch(); + + useEffect(() => { + if (window) { + window?.scrollTo(0, 0); + } + }, []); + useEffect(() => { dispatch(getExploreDetails(query)); }, [query]); diff --git a/src/screens/homeScreen.js b/src/screens/homeScreen.js index bb53230..d6d4f83 100644 --- a/src/screens/homeScreen.js +++ b/src/screens/homeScreen.js @@ -58,11 +58,13 @@ export const HomeScreen = () => { }; useEffect(() => { + return () => { dispatch(clearSearch()); }; }, []); + return ( {isOnline ? ( @@ -81,9 +83,7 @@ export const HomeScreen = () => { pointerEvents="none" children={ - - Enter - + Enter } /> diff --git a/src/screens/inbuiltPlayerScreen.js b/src/screens/inbuiltPlayerScreen.js index c113f5c..52aaa0a 100644 --- a/src/screens/inbuiltPlayerScreen.js +++ b/src/screens/inbuiltPlayerScreen.js @@ -87,8 +87,6 @@ const InbuiltPlayerScreen = () => { item = Object.values(single_ep)[0]; } }); - console.log("item", item); - console.log("???????????????????????????????????"); if (item) { console.log("item", item); @@ -145,6 +143,12 @@ const InbuiltPlayerScreen = () => { console.log("streamLoading", streamLoading); console.log("player", player); + useEffect(() => { + if (window) { + window?.scrollTo(0, 0); + } + }, []); + return (