Updated premiumize moch from upstream

This commit is contained in:
Gabisonfire
2024-02-27 09:22:50 -05:00
parent 4cbbb314b2
commit c7cf84ae62

View File

@@ -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]
};