From 3bd5de29f4867361510c185b4ddd840a4f0beaa0 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 9 Nov 2021 14:52:46 +0300 Subject: [PATCH 1/3] Update rev.bs.config.js --- sites/rev.bs/rev.bs.config.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sites/rev.bs/rev.bs.config.js b/sites/rev.bs/rev.bs.config.js index 30978a79..55f4c917 100644 --- a/sites/rev.bs/rev.bs.config.js +++ b/sites/rev.bs/rev.bs.config.js @@ -15,18 +15,8 @@ module.exports = { url: function ({ date }) { return endpoint.replace('$date', date.format('YYYY-MM-DD')).replace('$index', 0) }, - logo: async function ({ channel }) { - const html = await axios - .get('https://www.rev.bs/tv-guide') - .then(r => r.data) - .catch(console.log) - const $ = cheerio.load(html) - const script = $('body > script:nth-child(2)').html() - let channels = script.match(/Rev.TVGuide.channels = (.*);/i)[1] || '' - channels = JSON.parse(channels) - if (!channels[channel.site_id]) return null - - return `https:${channels[channel.site_id].channel_image}` + logo({ channel }) { + return channel.logo }, parser: async function ({ content, channel, date }) { const programs = [] From 4f8cd009ad2a202c99bdff9ea13bdc0cda5b5dbc Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 9 Nov 2021 14:52:51 +0300 Subject: [PATCH 2/3] Update rev.bs_bs.channels.xml --- sites/rev.bs/rev.bs_bs.channels.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sites/rev.bs/rev.bs_bs.channels.xml b/sites/rev.bs/rev.bs_bs.channels.xml index 47620bde..0923e1ea 100644 --- a/sites/rev.bs/rev.bs_bs.channels.xml +++ b/sites/rev.bs/rev.bs_bs.channels.xml @@ -1,9 +1,9 @@ - Island Luck TV - JCN Channel 14 - Our TV - ZNS TV + Island Luck TV + JCN Channel 14 + Our TV + ZNS TV \ No newline at end of file From 170ec99100cf27b4fd3c00897de5193f152fba30 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 10 Nov 2021 11:20:01 +0300 Subject: [PATCH 3/3] Update rev.bs_bs.channels.xml --- sites/rev.bs/rev.bs_bs.channels.xml | 188 +++++++++++++++++++++++++++- 1 file changed, 185 insertions(+), 3 deletions(-) diff --git a/sites/rev.bs/rev.bs_bs.channels.xml b/sites/rev.bs/rev.bs_bs.channels.xml index 0923e1ea..6c823a31 100644 --- a/sites/rev.bs/rev.bs_bs.channels.xml +++ b/sites/rev.bs/rev.bs_bs.channels.xml @@ -1,9 +1,191 @@ + 3ABN English + A&E East + Aljazeera English + AMC East + Animal Planet East + Ant1 Satellite + AWE + AXS TV + BabyFirst TV + BBC America East + BBC World News Americas + BCN TV + BET East + BET Gospel + BET Her East + BET Jams + BET Soul + Big Ten Network + Bloomberg TV US + Boomerang US + Bounce + Bravo + Cala Classics + Cala Weather + CaribVision + Cartoon Network East + CBC Toronto + CCTV 4 America + CCTV 9 + Cinemax East + Citytv Toronto + CMT Music + CNBC US + CNN International Latin America + CNN USA + Comedy Central East + Comedy TV + Cooking Channel + Court TV Mystery + CTV Toronto + Curiosity Channel + Daystar TV + Discovery Channel East + Discovery Civilization + Discovery HD World Latinoamérica + Discovery Home & Health Latinoamérica + Discovery Kids Colombia + Discovery Science Latinoamérica + Discovery Theater + Discovery Turbo América Latina + Disney Channel East + Disney Junior East + Disney XD East + DIY Network USA + DW English + E! East + ESPN 2 Caribbean + ESPN Caribbean + ESPNU + Es TV + Eurochannel + EuroNews English + EWTN US + Fight Network + Food Network East + Fox Business + Fox News Channel + Fox Soccer Plus + Fox Sports Racing + FS2 + FX East + FYI East + Game+ + Game Show Network East + Golf Channel US + Gone Viral Music + Gone Viral TV + Gone Viral Vogue + Gone Viral X-treme + Grit + HBO 2 Latinoamérica + HBO Caribbean + HBO East + HBO Family Latinoamérica + HBO Mundi Latinoamérica + HBO Mundi West + HBO + Latinoamérica + HBO Pop Latinoamérica + HBO Signature Latinoamérica + HBO Xtreme Latinoamérica + HGTV East + History East + HLN + Hope Channel North America + Impact Network + Inspiration TV + Investigation Discovery East + ION Plus East + ION TV East + I-Sat Island Luck TV - JCN Channel 14 - Our TV - ZNS TV + Island TV + JCN Channel 14 + Jewelry TV + Justice Central TV + FOX (KAYU) Spokane, WA + CBS (KIRO) Seattle, WA + KTLA Los Angeles, CA + ABC (KTVX) Salt Lake City, UT + Law & Crime + Lifetime East + Lifetime Movies East + Lifetime Real Women + MavTV + Me TV + MLB Network + Movies! + MSNBC + MTV 2 East + MTV East + My Destination TV + National Geographic East + National Geographic Wild + NBA TV + NBCSN + NFL Network + Nickelodeon East + NickMusic US + One America News Network + One Caribbean TV + Oprah Winfrey Network East + Our TV + Outdoor Channel + Paramount Network East + PBS Kids + Pursuit Channel + Quest UK + Rai Italia Nord America + Recipe TV + Revolt + SEC Network + Space México + SportsMax + SportsMax 2 + Star Action + Star Cinema + Star Classics + Star Comedy + Star Fun + Star Hits + Star Series + Syfy East + TBN US + TBS East + TCM América Latina + TeenNick East + Tele Pacific + Tempo Networks + The Africa Channel + The Parliamentary Channel + The Weather Channel + The Word Network + TLC East + TNT East + Travel Channel East + Treehouse TV + Tru TV East + TSN 1 + TV5Monde États-Unis + TVO + TV One + Univisión Este + VH1 East + Vice East + Warner Channel Panregional + CBS (WFOR) Miami, FL + WGN-TV + PBS (WPBT) Miami, FL + WPIX-TV + ABC (WPLG) Miami, FL + NBC (WPTV) West Palm Beach, FL + FOX (WSVN) Miami, FL + NBC (WTVJ) Miami, FL + MyNetworkTV (WWOR) New York, NY + YTV + ZNS TV \ No newline at end of file