fallback sources are only considered when not enough results are found. the idea is to use it for sources which are very useful as fallback but not everytime either because the quality is not good or querying them is resource intensive.
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
import { envGet, Fetcher } from '../utils';
|
|
import { CineHDPlus } from './CineHDPlus';
|
|
import { Cuevana } from './Cuevana';
|
|
import { Einschalten } from './Einschalten';
|
|
import { Eurostreaming } from './Eurostreaming';
|
|
import { FourKHDHub } from './FourKHDHub';
|
|
import { Frembed } from './Frembed';
|
|
import { FrenchCloud } from './FrenchCloud';
|
|
import { HomeCine } from './HomeCine';
|
|
import { KinoGer } from './KinoGer';
|
|
import { Kokoshka } from './Kokoshka';
|
|
import { MegaKino } from './MegaKino';
|
|
import { MeineCloud } from './MeineCloud';
|
|
import { MostraGuarda } from './MostraGuarda';
|
|
import { Movix } from './Movix';
|
|
import { RgShows } from './RgShows';
|
|
import { Source } from './Source';
|
|
import { StreamKiste } from './StreamKiste';
|
|
import { VerHdLink } from './VerHdLink';
|
|
import { VidSrc } from './VidSrc';
|
|
import { VixSrc } from './VixSrc';
|
|
|
|
export * from './Source';
|
|
|
|
export const createSources = (fetcher: Fetcher): Source[] => {
|
|
const disabledSources = envGet('DISABLED_SOURCES')?.split(',') ?? [];
|
|
|
|
return [
|
|
// multi
|
|
new FourKHDHub(fetcher),
|
|
new VixSrc(fetcher),
|
|
new VidSrc(),
|
|
new RgShows(fetcher),
|
|
// AL
|
|
new Kokoshka(fetcher),
|
|
// ES / MX
|
|
new CineHDPlus(fetcher),
|
|
new Cuevana(fetcher),
|
|
new HomeCine(fetcher),
|
|
new VerHdLink(fetcher),
|
|
// DE
|
|
new Einschalten(fetcher),
|
|
new KinoGer(fetcher),
|
|
new MegaKino(fetcher),
|
|
new MeineCloud(fetcher),
|
|
new StreamKiste(fetcher),
|
|
// FR
|
|
new Frembed(fetcher),
|
|
new FrenchCloud(fetcher),
|
|
new Movix(fetcher),
|
|
// IT
|
|
new Eurostreaming(fetcher),
|
|
new MostraGuarda(fetcher),
|
|
].filter(source => !disabledSources.includes(source.id));
|
|
};
|