From 0aebd94c47a735a7f976b5e2e8253ffcbeb1025c Mon Sep 17 00:00:00 2001 From: lem6ns Date: Sun, 13 Feb 2022 02:10:27 -0700 Subject: [PATCH 1/3] :sparkles: Added gdriveplayer as a scraper :sparkles: --- src/components/VideoElement.js | 5 +- src/lib/index.js | 6 +- src/lib/scraper/gdriveplayer.js | 80 + src/lib/scraper/xemovie.js | 2 - yarn.lock | 18119 +++++++++++++++--------------- 5 files changed, 9265 insertions(+), 8947 deletions(-) create mode 100644 src/lib/scraper/gdriveplayer.js diff --git a/src/components/VideoElement.js b/src/components/VideoElement.js index 65c024f2..b6875cd8 100644 --- a/src/components/VideoElement.js +++ b/src/components/VideoElement.js @@ -18,7 +18,8 @@ export function VideoElement({ streamUrl, loading, setProgress, videoRef, startT } React.useEffect(() => { - if (!streamUrl.includes('.mp4')) { + if (!streamUrl.includes('.mp4') && !streamUrl.includes('redirector.php')) { + console.log(streamUrl) setError(false) if (!videoRef || !videoRef.current || !streamUrl || streamUrl.length === 0 || loading) return; @@ -46,7 +47,7 @@ export function VideoElement({ streamUrl, loading, setProgress, videoRef, startT if (!streamUrl || streamUrl.length === 0) return No video selected - if (!streamUrl.includes('.mp4')) { + if (!streamUrl.includes('.mp4') && !streamUrl.includes('redirector.php')) { return (