Skip to content

Commit

Permalink
Remove scraping part and then try sum with the episode button
Browse files Browse the repository at this point in the history
  • Loading branch information
itzCozi committed Mar 26, 2024
1 parent 27d212b commit 09e2fd4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/pages/parts/player/ScrapingPart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,6 @@ export function ScrapingPart(props: ScrapingProps) {
};
}, [sourceOrder, sources]);

// This reloads the page if one sources takes more than 5 seconds to load
const TIMEOUT_DURATION = 5000;

useEffect(() => {
const timeout = setTimeout(() => {
setFailedStartScrape(true);
}, TIMEOUT_DURATION);

return () => {
clearTimeout(timeout);
};
}, [startScraping, props, report, isMounted]);

const started = useRef(false);
useEffect(() => {
if (started.current) return;
Expand Down

0 comments on commit 09e2fd4

Please sign in to comment.