diff --git a/src/helpers/pipe.js b/src/helpers/pipe.js index 9d5d78b..ca86380 100644 --- a/src/helpers/pipe.js +++ b/src/helpers/pipe.js @@ -339,6 +339,8 @@ const getWatchSources = async (provider, anilistId, category, slug) => { const extractSubtitles = (sources) => { const raw = sources.subtitles || sources.captions || []; + if (!Array.isArray(raw)) return []; + return raw.map((sub) => ({ url: sub.file || sub.url || null, label: sub.label || sub.name || sub.language || "Unknown",