mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
add insecure parse to docker cmd
This commit is contained in:
@@ -9,4 +9,4 @@ COPY package*.json ./
|
|||||||
RUN npm ci --only-production
|
RUN npm ci --only-production
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD [ "node", "index.js" ]
|
CMD [ "node", "--insecure-http-parser", "index.js" ]
|
||||||
@@ -35,8 +35,8 @@ async function _getInstantAvailable(hashes, apiKey, retries = 3, maxChunkSize =
|
|||||||
if (!missingHashes.length) {
|
if (!missingHashes.length) {
|
||||||
return cachedResults
|
return cachedResults
|
||||||
}
|
}
|
||||||
|
const options = await getDefaultOptions();
|
||||||
const RD = new RealDebridClient(apiKey, getDefaultOptions());
|
const RD = new RealDebridClient(apiKey, options);
|
||||||
const hashBatches = chunkArray(missingHashes, maxChunkSize)
|
const hashBatches = chunkArray(missingHashes, maxChunkSize)
|
||||||
return Promise.all(hashBatches.map(batch => RD.torrents.instantAvailability(batch)
|
return Promise.all(hashBatches.map(batch => RD.torrents.instantAvailability(batch)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|||||||
Reference in New Issue
Block a user