1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Revert "switch over to cloudflare worker"

This reverts commit f0d71d1124.
This commit is contained in:
James Hawkins 2021-08-03 18:54:08 +01:00
parent f0d71d1124
commit 0fc4e53630
3 changed files with 13 additions and 13 deletions

View file

@ -1,6 +1,6 @@
import { unpack } from '../util/unpacker';
const CORS_URL = 'https://proxy-01.movie-web.workers.dev/?';
const CORS_URL = 'https://movie-web-proxy.herokuapp.com/';
const BASE_URL = `${CORS_URL}https://gomo.to`;
const MOVIE_URL = `${BASE_URL}/movie`
const DECODING_URL = `${BASE_URL}/decoding_v3.php`

View file

@ -1,8 +1,8 @@
import Fuse from 'fuse.js'
import JSON5 from 'json5'
const CORS_URL = `https://proxy-01.movie-web.workers.dev/?`;
const BASE_URL = `${CORS_URL}https://lookmovie.io`;
const CORS_URL = `https://movie-web-proxy.herokuapp.com`;
const BASE_URL = `${CORS_URL}/https://lookmovie.io`;
async function findContent(searchTerm, type) {
const searchUrl = `${BASE_URL}/${type}s/search/?q=${encodeURIComponent(searchTerm)}`;

View file

@ -109,16 +109,16 @@ export function SearchView() {
}
}
// React.useEffect(() => {
// async function fetchHealth() {
// const HOME_URL = "https://proxy-01.movie-web.workers.dev/?"
// await fetch(HOME_URL).catch(() => {
// // Request failed; source likely offline
// setErrorStatus(`Our content provider is currently offline, apologies.`)
// })
// }
// fetchHealth()
// }, []);
React.useEffect(() => {
async function fetchHealth() {
const HOME_URL = "https://movie-web-proxy.herokuapp.com"
await fetch(HOME_URL).catch(() => {
// Request failed; source likely offline
setErrorStatus(`Our content provider is currently offline, apologies.`)
})
}
fetchHealth()
}, []);
React.useEffect(() => {
if (streamRouteMatch) {