mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-04-20 18:22:03 +00:00
[addon] fixes alldebrid no link condition
This commit is contained in:
parent
2a77abbf8d
commit
336e44d569
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ async function _unrestrictLink(AD, torrent, encodedFileName, fileIndex) {
|
|||
? videos.find(video => targetFileName.includes(video.filename))
|
||||
: videos.sort((a, b) => b.size - a.size)[0];
|
||||
|
||||
if (!targetVideo || targetVideo.link || !targetVideo.link.length) {
|
||||
if (!targetVideo || !targetVideo.link || !targetVideo.link.length) {
|
||||
return Promise.reject(`No AllDebrid links found for [${torrent.hash}] ${encodedFileName}`);
|
||||
}
|
||||
const unrestrictedLink = await AD.link.unlock(targetVideo.link).then(response => response.data.link);
|
||||
|
|
|
|||
Loading…
Reference in a new issue