mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-25 07:31:50 +01:00
Custom URL
This commit is contained in:
parent
c9235906b0
commit
98d076f4e9
@ -1,6 +1,6 @@
|
|||||||
import { unpack } from './util/unpacker';
|
import { unpack } from './util/unpacker';
|
||||||
|
|
||||||
const CORS_URL = 'https://safe-reaches-91175.herokuapp.com/';
|
const CORS_URL = 'https://movie-web-proxy.herokuapp.com/';
|
||||||
const BASE_URL = `${CORS_URL}https://gomo.to`;
|
const BASE_URL = `${CORS_URL}https://gomo.to`;
|
||||||
const MOVIE_URL = `${BASE_URL}/movie`
|
const MOVIE_URL = `${BASE_URL}/movie`
|
||||||
const DECODING_URL = `${BASE_URL}/decoding_v3.php`
|
const DECODING_URL = `${BASE_URL}/decoding_v3.php`
|
||||||
|
@ -2,7 +2,7 @@ import Fuse from 'fuse.js'
|
|||||||
import JSON5 from 'json5'
|
import JSON5 from 'json5'
|
||||||
|
|
||||||
function getCorsUrl(url) {
|
function getCorsUrl(url) {
|
||||||
return `https://safe-reaches-91175.herokuapp.com/${url}`;
|
return `https://movie-web-proxy.herokuapp.com/${url}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getVideoUrl(config) {
|
async function getVideoUrl(config) {
|
||||||
|
@ -103,7 +103,7 @@ export function SearchView() {
|
|||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
async function fetchHealth() {
|
async function fetchHealth() {
|
||||||
const HOME_URL = "https://safe-reaches-91175.herokuapp.com/https://lookmovie.io/"
|
const HOME_URL = "https://movie-web-proxy.herokuapp.com/https://lookmovie.io/"
|
||||||
await fetch(HOME_URL).catch(() => {
|
await fetch(HOME_URL).catch(() => {
|
||||||
// Request failed; source likely offline
|
// Request failed; source likely offline
|
||||||
setOfflineStatus(`Our content provider is currently offline, apologies.`)
|
setOfflineStatus(`Our content provider is currently offline, apologies.`)
|
||||||
|
Loading…
Reference in New Issue
Block a user