diff --git a/.env b/.env
index 73026647..c4a4738f 100644
--- a/.env
+++ b/.env
@@ -1 +1 @@
-REACT_APP_CORS_PROXY_URL=https://proxy-1.movie-web.workers.dev?destination=
+REACT_APP_CORS_PROXY_URL=https://proxy-1.movie-web.workers.dev/?destination=
diff --git a/src/components/VideoElement.js b/src/components/VideoElement.js
index da4dc0e8..4a08fbe6 100644
--- a/src/components/VideoElement.js
+++ b/src/components/VideoElement.js
@@ -18,7 +18,7 @@ export function VideoElement({ streamUrl, loading, setProgress, videoRef, startT
}
React.useEffect(() => {
- if (!streamUrl.endsWith('.mp4')) {
+ if (!streamUrl.includes('.mp4')) {
setError(false)
if (!videoRef || !videoRef.current || !streamUrl || streamUrl.length === 0 || loading) return;
@@ -46,7 +46,7 @@ export function VideoElement({ streamUrl, loading, setProgress, videoRef, startT
if (!streamUrl || streamUrl.length === 0)
return No video selected
- if (!streamUrl.endsWith('.mp4')) {
+ if (!streamUrl.includes('.mp4')) {
return (