mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 21:26:53 +00:00
fix downloading status for offcloud
This commit is contained in:
parent
d55f1556e3
commit
a634ec318b
1 changed files with 2 additions and 3 deletions
|
|
@ -116,8 +116,7 @@ async function _findTorrent(OC, infoHash) {
|
|||
|
||||
async function _createTorrent(OC, infoHash) {
|
||||
const magnetLink = await getMagnetLink(infoHash);
|
||||
const response = await OC.cloud.download(magnetLink);
|
||||
return response
|
||||
return await OC.cloud.download(magnetLink)
|
||||
}
|
||||
|
||||
async function _unrestrictLink(OC, infoHash, torrent, cachedEntryInfo, fileIndex) {
|
||||
|
|
@ -139,7 +138,7 @@ async function getDefaultOptions(ip) {
|
|||
}
|
||||
|
||||
function statusDownloading(torrent) {
|
||||
return torrent.status === 'created'
|
||||
return ['downloading', 'created'].includes(torrent.status);
|
||||
}
|
||||
|
||||
function statusError(torrent) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue