mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Updated premiumize moch from upstream
This commit is contained in:
@@ -32,7 +32,7 @@ async function _getCachedStreams(PM, apiKey, streams) {
|
|||||||
const fileName = streamTitleParts[streamTitleParts.length - 1];
|
const fileName = streamTitleParts[streamTitleParts.length - 1];
|
||||||
const fileIndex = streamTitleParts.length === 2 ? stream.fileIdx : null;
|
const fileIndex = streamTitleParts.length === 2 ? stream.fileIdx : null;
|
||||||
const encodedFileName = encodeURIComponent(fileName);
|
const encodedFileName = encodeURIComponent(fileName);
|
||||||
mochStreams[stream.infoHash] = {
|
mochStreams[`${stream.infoHash}@${stream.fileIdx}`] = {
|
||||||
url: `${apiKey}/${stream.infoHash}/${encodedFileName}/${fileIndex}`,
|
url: `${apiKey}/${stream.infoHash}/${encodedFileName}/${fileIndex}`,
|
||||||
cached: available?.response[index]
|
cached: available?.response[index]
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user