mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
fix downloading status for offcloud
This commit is contained in:
@@ -116,8 +116,7 @@ async function _findTorrent(OC, infoHash) {
|
|||||||
|
|
||||||
async function _createTorrent(OC, infoHash) {
|
async function _createTorrent(OC, infoHash) {
|
||||||
const magnetLink = await getMagnetLink(infoHash);
|
const magnetLink = await getMagnetLink(infoHash);
|
||||||
const response = await OC.cloud.download(magnetLink);
|
return await OC.cloud.download(magnetLink)
|
||||||
return response
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function _unrestrictLink(OC, infoHash, torrent, cachedEntryInfo, fileIndex) {
|
async function _unrestrictLink(OC, infoHash, torrent, cachedEntryInfo, fileIndex) {
|
||||||
@@ -139,7 +138,7 @@ async function getDefaultOptions(ip) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function statusDownloading(torrent) {
|
function statusDownloading(torrent) {
|
||||||
return torrent.status === 'created'
|
return ['downloading', 'created'].includes(torrent.status);
|
||||||
}
|
}
|
||||||
|
|
||||||
function statusError(torrent) {
|
function statusError(torrent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user