From 42631558fcae0d6aa6cdeb7f006e30c74a991098 Mon Sep 17 00:00:00 2001 From: Newbiect <51307314+Newbiect@users.noreply.github.com> Date: Sun, 9 Feb 2025 19:02:47 -0500 Subject: [PATCH] Update zap2it.com.config.js --- sites/zap2it.com/zap2it.com.config.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sites/zap2it.com/zap2it.com.config.js b/sites/zap2it.com/zap2it.com.config.js index ed0680ec..1135075e 100644 --- a/sites/zap2it.com/zap2it.com.config.js +++ b/sites/zap2it.com/zap2it.com.config.js @@ -16,13 +16,10 @@ module.exports = { headers: { 'Content-Type': 'application/json', 'Accept': 'application/json', + 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', }, data({ date, channel }) { const [device, lineupId, headendId, countryCode, postalCode, prgsvcid] = channel.site_id.split('/') - - if (!device || !lineupId || !headendId || !countryCode || !postalCode || !prgsvcid) { - throw new Error('El site_id no contiene todos los valores obligatorios.') - } const timestamp = dayjs(date).unix().toString()