rd retry on 504 for availability check

This commit is contained in:
TheBeastLT
2021-12-15 11:26:21 +01:00
parent 5d42389067
commit faca41eb7c

View File

@@ -10,7 +10,7 @@ const { chunkArray, BadTokenError } = require('./mochHelper');
const MIN_SIZE = 5 * 1024 * 1024; // 5 MB
const CATALOG_MAX_PAGE = 5;
const CATALOG_PAGE_SIZE = 100;
const NON_BLACKLIST_ERRORS = ['ESOCKETTIMEDOUT', 'EAI_AGAIN'];
const NON_BLACKLIST_ERRORS = ['ESOCKETTIMEDOUT', 'EAI_AGAIN', '504 Gateway Time-out'];
const KEY = "realdebrid"
async function getCachedStreams(streams, apiKey) {