Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gogoanime,zoro): Add optional custom domain functionality #609

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ REDIS_PORT=Redis port (optional)
REDIS_PASSWORD=Redis password (optional)
NINE_ANIME_HELPER_URL=9anime (optional)
TMDB_KEY=TMDB access token auth (optional)
RECAPTCHATOKEN=Gogoanime recaptcha token (optional)
GOGOANIME_URL=Gogoanime custom url (optional)
ZORO_URL=Zoro custom url (optional)
NODE_ENV=Environment (optional) (DEMO or PROD)
2 changes: 1 addition & 1 deletion src/routes/anime/gogoanime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { redis } from '../../main';
import { Redis } from 'ioredis';

const routes = async (fastify: FastifyInstance, options: RegisterOptions) => {
const gogoanime = new ANIME.Gogoanime();
const gogoanime = new ANIME.Gogoanime(process.env.GOGOANIME_URL);
const redisCacheTime = 60 * 60;
const redisPrefix = 'gogoanime:';

Expand Down
2 changes: 1 addition & 1 deletion src/routes/anime/zoro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ANIME } from '@consumet/extensions';
import { StreamingServers } from '@consumet/extensions/dist/models';

const routes = async (fastify: FastifyInstance, options: RegisterOptions) => {
const zoro = new ANIME.Zoro();
const zoro = new ANIME.Zoro(process.env.ZORO_URL);

fastify.get('/', (_, rp) => {
rp.status(200).send({
Expand Down
Loading