subtitles

This commit is contained in:
Tejas Panchal
2026-03-01 15:37:50 +05:30
parent 0e1955eb42
commit 19e3899e6d
3 changed files with 63 additions and 33 deletions

View File

@@ -59,7 +59,26 @@ async function extractStreamingInfo(id, name, type, fallback) {
type,
fallback
);
return { streamingLink, servers };
if (!streamingLink) {
return { streamingLink: [], servers };
}
return {
streamingLink: [
{
link: streamingLink.link.file,
type: streamingLink.link.type,
server: streamingLink.server,
iframe: streamingLink.iframe,
},
],
tracks: streamingLink.tracks,
intro: streamingLink.intro,
outro: streamingLink.outro,
server: streamingLink.server,
servers,
};
} catch (error) {
console.error("An error occurred:", error);
return { streamingLink: [], servers: [] };