This commit is contained in:
shafat420
2025-06-05 23:19:48 +06:00
parent 1249cd9390
commit fd48a55700

View File

@@ -234,7 +234,10 @@ app.get('/animepahe/hls/:anilistId/:episode', cache('15 minutes'), async (req, r
const sources = await consumetAnimePahe.fetchEpisodeSources(targetEpisode.episodeId);
// Return the sources directly
return res.status(200).json(sources);
return res.status(200).json({
sources: sources,
image: targetEpisode.image || ''
});
} catch (error) {
console.error('Error fetching HLS sources:', error.message);
return res.status(500).json({