try to fix offcloud file selection
This commit is contained in:
parent
d575c5fc9b
commit
3984e2b0ed
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ async function _unrestrictLink(OC, infoHash, torrent, cachedEntryInfo, fileIndex
|
||||||
const targetFileName = decodeURIComponent(cachedEntryInfo);
|
const targetFileName = decodeURIComponent(cachedEntryInfo);
|
||||||
const files = await _getFileUrls(OC, torrent)
|
const files = await _getFileUrls(OC, torrent)
|
||||||
const targetFile = files.find(file => sameFilename(targetFileName, file.split('/').pop()))
|
const targetFile = files.find(file => sameFilename(targetFileName, file.split('/').pop()))
|
||||||
|| files.find(file => file.includes(`/${torrent.requestId}/${fileIndex}/`))
|
|| files.find(file => file.includes(`/${torrent.requestId}/${fileIndex + 1}/`) && isVideo(file))
|
||||||
|| files.find(file => isVideo(file))
|
|| files.find(file => isVideo(file))
|
||||||
|| files.pop();
|
|| files.pop();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue