From 81f0982bdc5f82d92d93d9e061580bf26c5ea226 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 20 Jan 2022 19:56:25 +0300 Subject: [PATCH] Update directv.com.config.js --- sites/directv.com/directv.com.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sites/directv.com/directv.com.config.js b/sites/directv.com/directv.com.config.js index f5858e5e..254683f1 100644 --- a/sites/directv.com/directv.com.config.js +++ b/sites/directv.com/directv.com.config.js @@ -37,9 +37,13 @@ module.exports = { return programs }, - async channels({ country }) { + async channels({ zip }) { const html = await axios - .get(`https://www.directv.com/guide`) + .get(`https://www.directv.com/guide`, { + headers: { + cookie: `dtve-prospect-zip=${zip}` + } + }) .then(r => r.data) .catch(console.log)