From d9a75265b09663a9d1af10f2777e3c2cdce56267 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 9 Nov 2021 09:39:55 +0300 Subject: [PATCH] Update tvtv.us.config.js --- sites/tvtv.us/tvtv.us.config.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sites/tvtv.us/tvtv.us.config.js b/sites/tvtv.us/tvtv.us.config.js index af3d58d6..d2d4fe36 100644 --- a/sites/tvtv.us/tvtv.us.config.js +++ b/sites/tvtv.us/tvtv.us.config.js @@ -1,4 +1,3 @@ -const axios = require('axios') const dayjs = require('dayjs') const utc = require('dayjs/plugin/utc') @@ -14,17 +13,8 @@ module.exports = { channel.site_id }/listings?start=${date.format()}&end=${date.add(1, 'd').format()}` }, - logo: async function ({ channel }) { - if (channel.logo) return channel.logo - - return await axios - .get(`https://tvtv.us/tvm/t/tv/v4/stations/${channel.site_id}`) - .then(r => - r.data && r.data.logoFilename - ? `https://cdn.tvpassport.com/image/station/100x100/${r.data.logoFilename}` - : null - ) - .catch(e => console.log) + logo({ channel }) { + return channel.logo }, parser: function ({ content }) { let programs = []