[scraper] updates stream info mapping

This commit is contained in:
TheBeastLT
2020-04-05 21:42:44 +02:00
parent eb23968452
commit 5f81cded75
4 changed files with 37 additions and 44 deletions

View File

@@ -16,7 +16,7 @@ async function applyMoch(streams, apiKey) {
const cachedEntry = available[stream.infoHash];
const cachedIds = getCachedFileIds(stream.fileIdx, cachedEntry).join(',');
if (cachedIds.length) {
stream.name = `[RD Cached]\n${stream.name}`;
stream.name = `[RD+] ${stream.name}`;
stream.url = `${RESOLVER_HOST}/realdebrid/${apiKey}/${stream.infoHash}/${cachedIds}/${stream.fileIdx}`;
delete stream.infoHash;
delete stream.fileIndex;