Merge pull request #97 from Gabisonfire/fix/premiumize

Updated premiumize moch from upstream
This commit is contained in:
Gabisonfire
2024-02-29 09:24:03 -05:00
committed by GitHub

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