From fd48a55700846fb62c304464eb16e2b4e3ca698b Mon Sep 17 00:00:00 2001 From: shafat420 Date: Thu, 5 Jun 2025 23:19:48 +0600 Subject: [PATCH] image --- src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 944b5b2..5638b4e 100644 --- a/src/index.js +++ b/src/index.js @@ -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({