[addon] fix rd cached torrent file selection
This commit is contained in:
parent
79f4193792
commit
6537dd8cb8
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ async function _createTorrentId(RD, infoHash, cachedFileIds) {
|
|||
const magnetLink = await getMagnetLink(infoHash);
|
||||
const addedMagnet = await RD.torrents.addMagnet(magnetLink);
|
||||
if (cachedFileIds && !['null', 'undefined'].includes(cachedFileIds)) {
|
||||
await RD.torrents.selectFiles(torrent.id, cachedFileIds);
|
||||
await RD.torrents.selectFiles(addedMagnet.id, cachedFileIds);
|
||||
}
|
||||
return addedMagnet.id;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue