moved introdb base url to env

This commit is contained in:
tapframe 2025-12-28 03:13:17 +05:30
parent de7fcb4d4d
commit 5662ee908d
4 changed files with 7 additions and 3 deletions

View file

@ -17,3 +17,7 @@ EXPO_PUBLIC_MOVIEBOX_TMDB_API_KEY=your_tmdb_api_key_for_moviebox
EXPO_PUBLIC_TRAKT_CLIENT_ID=your_trakt_client_id
EXPO_PUBLIC_TRAKT_CLIENT_SECRET=your_trakt_client_secret
EXPO_PUBLIC_TRAKT_REDIRECT_URI=stremioexpo://auth/trakt
# Skip Intro API (IntroDB)
# Fetches intro timestamps for TV shows to enable skip intro functionality
EXPO_PUBLIC_INTRODB_API_URL=https://api.introdb.app

View file

@ -351,7 +351,7 @@ const AndroidVideoPlayer: React.FC = () => {
if (!hasExoPlayerFailed.current) {
hasExoPlayerFailed.current = true;
logger.warn('[AndroidVideoPlayer] ExoPlayer codec error detected, switching to MPV silently');
ToastAndroid.show('Switching to MPV due to unsupported codec', ToastAndroid.SHORT);
ToastAndroid.show('Switching to MPV due to playback issue', ToastAndroid.SHORT);
setUseExoPlayer(false);
}
}, []);

View file

@ -365,7 +365,7 @@ const PlayerSettingsScreen: React.FC = () => {
{ color: currentTheme.colors.textMuted },
]}
>
Auto uses ExoPlayer with MPV fallback. MPV uses MPV exclusively.
Auto uses ExoPlayer with MPV fallback. Some formats like Dolby Vision and HDR may not be supported by MPV, so Auto is recommended for best compatibility.
</Text>
</View>
</View>

View file

@ -6,7 +6,7 @@ import { logger } from '../utils/logger';
* API Documentation: https://api.introdb.app
*/
const API_BASE_URL = process.env.EXPO_PUBLIC_INTRODB_API_URL || 'https://api.introdb.app';
const API_BASE_URL = process.env.EXPO_PUBLIC_INTRODB_API_URL;
export interface IntroTimestamps {
imdb_id: string;