mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-04-21 06:51:55 +00:00
add insecure parse to docker cmd
This commit is contained in:
parent
9117d574b4
commit
eb86b83170
2 changed files with 3 additions and 3 deletions
|
|
@ -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 => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue