mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] fix rd cached torrent file selection
This commit is contained in:
@@ -183,7 +183,7 @@ async function _createTorrentId(RD, infoHash, cachedFileIds) {
|
|||||||
const magnetLink = await getMagnetLink(infoHash);
|
const magnetLink = await getMagnetLink(infoHash);
|
||||||
const addedMagnet = await RD.torrents.addMagnet(magnetLink);
|
const addedMagnet = await RD.torrents.addMagnet(magnetLink);
|
||||||
if (cachedFileIds && !['null', 'undefined'].includes(cachedFileIds)) {
|
if (cachedFileIds && !['null', 'undefined'].includes(cachedFileIds)) {
|
||||||
await RD.torrents.selectFiles(torrent.id, cachedFileIds);
|
await RD.torrents.selectFiles(addedMagnet.id, cachedFileIds);
|
||||||
}
|
}
|
||||||
return addedMagnet.id;
|
return addedMagnet.id;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user