mirror of
https://github.com/JustAnimeCore/HiAnime-Api.git
synced 2026-04-17 22:01:44 +00:00
subtitles
This commit is contained in:
@@ -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: [] };
|
||||
|
||||
Reference in New Issue
Block a user