From 0cc49418b42c42f5cf653a65dec3adea8dc1206b Mon Sep 17 00:00:00 2001 From: myallpsd Date: Wed, 8 Jan 2025 00:45:31 +0600 Subject: [PATCH] Update 9anime.ts .Add support for custom 9ANIME_BASE_URL via environment variable Allows users to define their own 9Anime base URL through process.env.9ANIME_BASE_URL Falls back to https://aniwave.to if no environment variable is set --- src/providers/anime/9anime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/anime/9anime.ts b/src/providers/anime/9anime.ts index 55220db49..82981eb7c 100644 --- a/src/providers/anime/9anime.ts +++ b/src/providers/anime/9anime.ts @@ -25,7 +25,7 @@ class NineAnime extends AnimeParser { override readonly name = '9Anime'; private nineAnimeResolver = ''; private apiKey = ''; - protected override baseUrl = 'https://aniwave.to'; + protected override baseUrl = process.env.9ANIME_BASE_URL || 'https://aniwave.to'; protected override logo = 'https://d1nxzqpcg2bym0.cloudfront.net/google_play/com.my.nineanime/87b2fe48-9c36-11eb-8292-21241b1c199b/128x128'; protected override classPath = 'ANIME.NineAnime';