[addon] adds premiumize moch

This commit is contained in:
TheBeastLT
2020-05-09 13:34:45 +02:00
parent 0e7d7d0b32
commit f9260bff2e
5 changed files with 90 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ async function getCachedStreams(streams, apiKey) {
const hashes = streams.map(stream => stream.infoHash);
const available = await RD.torrents.instantAvailability(hashes)
.catch(error => {
console.warn('Failed cached torrent availability request: ', error);
console.warn('Failed RealDebrid cached torrent availability request: ', error);
return undefined;
});
return available && streams
@@ -72,7 +72,7 @@ async function _unrestrict(apiKey, infoHash, cachedFileIds, fileIndex) {
console.log(`Unrestricted ${infoHash} [${fileIndex}] to ${unrestrictedLink}`);
return unrestrictedLink;
}
return Promise.reject("Failed adding torrent");
return Promise.reject("Failed RealDebrid adding torrent");
}
async function _createOrFindTorrentId(RD, infoHash, cachedFileIds) {