diff --git a/src/node/addon/src/moch/premiumize.js b/src/node/addon/src/moch/premiumize.js index e458600..4abcae3 100644 --- a/src/node/addon/src/moch/premiumize.js +++ b/src/node/addon/src/moch/premiumize.js @@ -32,7 +32,7 @@ async function _getCachedStreams(PM, apiKey, streams) { const fileName = streamTitleParts[streamTitleParts.length - 1]; const fileIndex = streamTitleParts.length === 2 ? stream.fileIdx : null; const encodedFileName = encodeURIComponent(fileName); - mochStreams[stream.infoHash] = { + mochStreams[`${stream.infoHash}@${stream.fileIdx}`] = { url: `${apiKey}/${stream.infoHash}/${encodedFileName}/${fileIndex}`, cached: available?.response[index] };