diff --git a/README.md b/README.md index 1fc7f2b3..d9876d08 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ To load a program guide, all you need to do is copy the link to one of the guide SourceLanguageChannelsEPG - tvguide.co.uken248https://iptv-org.github.io/epg/guides/tvguide.co.uk.guide.xml ontvtonight.comen98https://iptv-org.github.io/epg/guides/ontvtonight.com.guide.xml programme-tv.netfr264https://iptv-org.github.io/epg/guides/programme-tv.net.guide.xml tv.yandex.ruru289https://iptv-org.github.io/epg/guides/tv.yandex.ru.guide.xml diff --git a/run.sh b/run.sh index 8e3e156d..8c6bd649 100755 --- a/run.sh +++ b/run.sh @@ -1,6 +1,5 @@ #!/bin/bash npx epg-grabber --config=sites/programme-tv.net.config.js && \ -npx epg-grabber --config=sites/tvguide.co.uk.config.js && \ npx epg-grabber --config=sites/ontvtonight.com.config.js && \ npx epg-grabber --config=sites/tv.yandex.ru.config.js \ No newline at end of file diff --git a/sites/tvguide.co.uk.channels.xml b/sites/tvguide.co.uk.channels.xml deleted file mode 100755 index 0562d78f..00000000 --- a/sites/tvguide.co.uk.channels.xml +++ /dev/null @@ -1,253 +0,0 @@ - - - - BBC Two Wales - BBC Four - Bloomberg TV UK - Boomerang UK - Cartoon Network UK - CBBC - CBeebies UK - Challenge UK - Channel 4 UK - Trace Hits - CNN - Discovery Channel UK - Discovery History UK - Discovery Science UK - E! UK - E4 UK - EuroNews - Eurosport - Film4 UK - Film4 UK +1 - Channel 5 - Fox UK - Sky History +1 - STV North - ITV Anglia - STV North +1 - ITV Central - ITV Westcountry - ITV Channel Television - ITV Granada - ITV London - ITV Meridian - ITV Tyne Tees - ITV Wales - ITV West - ITV Yorkshire - STV Central - UTV - ITV2 - Kerrang! TV - Kiss TV - Sky Witness UK - Sky Witness UK +1 - Magic - MTV UK - MTV Base UK - MTV Hits UK - MUTV - National Geographic UK - Nickelodeon UK - Nick Jr. UK - NickToons UK - Comedy Central UK - Comedy Central Extra - QVC UK - S4C - Syfy UK - Sky Cinema Premiere - Sky Cinema Premiere +1 - Sky Cinema Comedy - Sky News - Sky One UK - Sky Replay UK - Box Hits - The Box UK - Together TV - Yesterday - HGTV UK - RTÉ One - Sony SAB - Utsav Plus - TG4 - Virgin Media One - Eden +1 - HGTV UK +1 - Zee TV UK - ITV3 - More4 UK - RTÉ Two - ITV4 - Pick UK - E4 UK +1 - 5Star - 5USA - ITV2 +1 - CITV - Sky Arts - CBS Reality UK - Discovery Turbo UK - Boomerang UK +1s - Cartoonito UK - Challenge UK +1 - Crime + Investigation UK - Eurosport 2 - Fox UK +1 - Sky Crime - Nat Geo Wild UK - Comedy Central UK +1 - Syfy UK +1 - Really UK - Yesterday +1 - CBS Reality UK +1 - Horror Channel UK - Channel 4 UK +1 - More4 UK +1 - Dave UK - Utsav Gold - Al Jazeera English - Racing TV - TCM Movies +1 - DMAX UK - Dave ja vu - Cartoon Network UK +1 - Pop - ITV3 +1 - Tiny Pop - Sky One UK - CBS Drama UK - CBS Justice UK - Sony Movies Classic +1 - Sony Movies Action - Horror Channel UK +1 - Sky History 2 - 4Music - BBC Alba - W UK - W UK +1 - Gold UK - Gold UK +1 - Alibi UK - Alibi UK +1 - Sky Cinema Sci-fi/Horror - Sky History - ITV4 +1 - 3e - Investigation Discovery UK - Eden - Sky Crime +1 - Quest UK - Phoenix CNE - Channel 5 +24 - 5USA +1 - Crime + Investigation UK +1 - BT Sport ESPN - Animal Planet UK - Create and Craft - Animal Planet UK +1 - CNBC UK - Quest UK +1 - Food Network UK +1 - Food Network UK - Kix - Movies 24+ - NHK World Japan - Sky Cinema Thriller - DMAX UK +1 - Discovery History UK +1 - Tiny Pop +1 - Sony Movies Action +1 - Nickelodeon UK +1 - At The Races - Sony Channel UK - Discovery Science UK +1 - BBC Red Button 1 - Sky Cinema Hits - STV HD - BBC News - TCM Movies - Pick UK +1 - BBC Parliament - BBC One - ITV Yorkshire +1 - ITV Granada +1 - ITV London +1 - UTV +1 - ITV West +1 - ITV Central +1 - STV Central +1 - MTV Music UK - Sky Atlantic UK - LFC TV - RT UK - Sony Entertainment TV Asia - Premier Sports - RTÉ Jr - RTÉ News - BBC One East Midlands - Channel 5 +1 - BBC One East - BBC One Oxfordshire - BBC One Yorks & Lincs - BBC One Cambridgeshire - BBC One Channel Islands - BBC One London - Sony Movies - Sony Movies +1 - BBC One Midlands - PBS America - 4seven - Ideal World - BBC One North East & Cumbria - BBC One North West - BBC One North - BBC One Northern Ireland - ITV Border - Sky Atlantic UK +1 - Nick Jr. UK +1 - ITV Anglia +1 - ITV Tynes Tees +1 - BBC One South East - ITV Wales +1 - ITV Meridian +1 - BBC One Northern Ireland - BabyTV Europe - Sky One UK +1 - BBC One South West - National Geographic UK +1 - Discovery Channel UK +1 - BBC One South - BBC One Scotland - BBC One Wales - TLC UK +1 - TLC UK - Colors Rishtey Europe - BBC One Wales - Investigation Discovery UK +1 - Drama UK - Utsav Bharat - BT Sport 1 - BT Sport 2 - BBC One West - Colors - BBC Two - Channel 5 +1 - ITV3 +1 (Freeview) - London Live - Pop +1 - Forces TV - ITVBe - ITVBe +1 - Virgin Media Three - BT Sport - ITV Border Scotland - Talking Pictures - AMC - BBC Two Northern Ireland - Sony Movies Classic - Notts TV - - diff --git a/sites/tvguide.co.uk.config.js b/sites/tvguide.co.uk.config.js deleted file mode 100644 index 128ab0bf..00000000 --- a/sites/tvguide.co.uk.config.js +++ /dev/null @@ -1,57 +0,0 @@ -const jsdom = require('jsdom') -const { JSDOM } = jsdom -const { htmlToText } = require('html-to-text') -const dayjs = require('dayjs') -const utc = require('dayjs/plugin/utc') -const customParseFormat = require('dayjs/plugin/customParseFormat') - -dayjs.extend(utc) -dayjs.extend(customParseFormat) - -module.exports = { - lang: 'en', - site: 'tvguide.co.uk', - channels: 'tvguide.co.uk.channels.xml', - output: '.gh-pages/guides/tvguide.co.uk.guide.xml', - url: function ({ date, channel }) { - return `https://www.tvguide.co.uk/mobile/channellisting.asp?ch=${channel.site_id}` - }, - parser: function ({ content, date }) { - const programs = [] - const dom = new JSDOM(content) - const channelListings = dom.window.document.querySelector('#channel-listings') - const rows = channelListings.querySelectorAll('table:first-of-type > tbody > tr') - - rows.forEach(tr => { - const time = (tr.getElementsByClassName('time')[0] || { textContent: '' }).textContent - .toString() - .trim() - const title = (tr.getElementsByClassName('title')[0] || { textContent: '' }).textContent - .toString() - .trim() - const detail = tr.getElementsByClassName('detail')[0] || { textContent: '' } - const description = htmlToText(detail.textContent) - - if (time && title) { - const start = dayjs - .utc(time, 'h:mma') - .set('D', date.get('D')) - .set('M', date.get('M')) - .set('y', date.get('y')) - .toString() - - if (programs.length && !programs[programs.length - 1].stop) { - programs[programs.length - 1].stop = start - } - - programs.push({ - title, - description, - start - }) - } - }) - - return programs - } -}