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

change function names

This commit is contained in:
James Hawkins 2021-07-19 22:34:04 +01:00
parent 7ee63c4c7f
commit 0528531bb5
2 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@ 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`
async function findContent(searchTerm, type) { async function findContentGomo(searchTerm, type) {
try { try {
if (type !== 'movie') return; if (type !== 'movie') return;
@ -39,7 +39,7 @@ async function findContent(searchTerm, type) {
} }
} }
async function getStreamUrl(slug, type, season, episode) { async function getStreamUrlGomo(slug, type, season, episode) {
if (type !== 'movie') return; if (type !== 'movie') return;
// Get stream to go with IMDB ID // Get stream to go with IMDB ID
@ -75,4 +75,4 @@ async function getStreamUrl(slug, type, season, episode) {
return { url } return { url }
} }
export { findContent, getStreamUrl } export { findContentGomo, getStreamUrlGomo }

View file

@ -6,8 +6,8 @@ import { ErrorBanner } from '../components/ErrorBanner'
import { MovieRow } from '../components/MovieRow' import { MovieRow } from '../components/MovieRow'
import { Arrow } from '../components/Arrow' import { Arrow } from '../components/Arrow'
import { Progress } from '../components/Progress' import { Progress } from '../components/Progress'
import { /* findContent, getStreamUrl,*/ getEpisodes } from '../lib/lookMovie' import { findContent, getStreamUrl, getEpisodes } from '../lib/lookMovie'
import { findContent, getStreamUrl } from '../lib/gomostream'; // import { findContentGomo, getStreamUrlGomo } from '../lib/gomostream';
import { useMovie } from '../hooks/useMovie'; import { useMovie } from '../hooks/useMovie';
import { TypeSelector } from '../components/TypeSelector' import { TypeSelector } from '../components/TypeSelector'