Browse Source

change function names

pull/17/head
James Hawkins 5 years ago
parent
commit
0528531bb5
  1. 6
      src/lib/gomostream.js
  2. 4
      src/views/Search.js

6
src/lib/gomostream.js

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

4
src/views/Search.js

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

Loading…
Cancel
Save