mirror of
https://gitlab.com/vyla-entertainment/sdk.git
synced 2026-11-17 07:37:34 -05:00
Add nova/mega, enable pengu with new config, provide SDK directly
This commit is contained in:
@@ -69,7 +69,9 @@ async function extractHls(embedUrl) {
|
||||
return null;
|
||||
}
|
||||
|
||||
export async function getStream({ id, s, e, audio, tmdbApiKey }) {
|
||||
export async function getStream({ id, s, e, audio, sdk }) {
|
||||
const tmdbApiKey = sdk?.tmdbApiKey || null;
|
||||
if (!tmdbApiKey) return null;
|
||||
try {
|
||||
const info = await getTmdbInfo(tmdbApiKey, id, s ? 'tv' : 'movie', s);
|
||||
if (!info || !info.isAnime) return null;
|
||||
|
||||
Reference in New Issue
Block a user