diff --git a/sites/tvgid.ua.channels.xml b/sites/tvgid.ua.channels.xml index 87801679..d124fccc 100755 --- a/sites/tvgid.ua.channels.xml +++ b/sites/tvgid.ua.channels.xml @@ -3,17 +3,16 @@ 1+1 2+2 - 24 Kanal - 34 Telekanal - 4 Kanal 5 Kanal 8 Kanal + 34 Telekanal Ajara TV AMC Russia Animal Planet Europe BBC World News Europe Belarus 24 Bigudi + TV Bolt Cartoon Network Russia & South East Europe CBS Reality Europe Che! @@ -32,84 +31,86 @@ Eurosport 2 Rossiya Evrokino Extreme Sports Channel - Fox Life Russia Fox Russia + Fox Life Russia Futbol 1 Futbol 2 + OTB Galychyna Glas + UA: Kultura ICTV + Investigation Discovery Europe Indigo TV Inter Inter + - Investigation Discovery Europe + Zhivi! K1 K2 - Kinohit + Kyïv TV Kinomiks Kinopremyera + Kinohit + Rossiya K Kvartal TV - Kyïv TV M1 Malyatko TV - Match! Match! Arena Match! Boets Match! Igra + Match! Mega Mir Multilandia Music Box Ukraina Muz TV Muzhskoe Kino + Telekanal Nadiya Nash Nashe Novoe Kino - National Geographic Russia National Geographic Wild Russia + National Geographic Russia Nickelodeon CIS NLO TV Novy Kanal NTN Obozrevatel TV - Oce Ohotnik i Rybolov - OTB Galychyna + Oce OTV Paramount Comedy Ukraina Pershiy Diloviy Piksel TV Plus Plus + TVP Polonia Polsat Pryamyy Pyatnitsa! - Rossiya K - RTVi Europe Ryzhiy + RTVi Europe Setanta Sports Ukraine Sonce Sony Sci-Fi Russia + Telekanal Spas Star Cinema Star Family - STS - Telekanal Nadiya - Telekanal Spas Telekanal STB - Telekanal Ukraina + STS + 24 Kanal TET Travel Channel Europe - TV 1000 Action + TV 3 TV 1000 East TV 1000 World Kino - TV 3 + TV-4 TV 5 - TV Bolt + TV 1000 Action TV XXI TVP 1 TVP 2 - TVP Polonia U - UA: Kultura UA: Pershiy UA: Zakarpattya + Telekanal Ukraina Unian TV Viasat Explore East Viasat History @@ -118,9 +119,8 @@ VIP Comedy VIP Premiere X Sport - Zhivi! - Zoo Park Zoo TV Zoom + Zoo Park \ No newline at end of file diff --git a/sites/tvgid.ua.config.js b/sites/tvgid.ua.config.js index b54fca8a..11e3262b 100644 --- a/sites/tvgid.ua.config.js +++ b/sites/tvgid.ua.config.js @@ -10,9 +10,9 @@ dayjs.extend(utc) dayjs.extend(timezone) dayjs.extend(customParseFormat) -let PM = false module.exports = { lang: 'uk', + days: 3, site: 'tvgid.ua', channels: 'tvgid.ua.channels.xml', output: '.gh-pages/guides/tvgid.ua.guide.xml', @@ -20,6 +20,7 @@ module.exports = { return `https://tvgid.ua/channels/${channel.site_id}/${date.format('DDMMYYYY')}/tmall/` }, parser: function ({ buffer, date }) { + let PM = false const programs = [] const items = parseItems(buffer) items.forEach(item => { @@ -28,7 +29,7 @@ module.exports = { if (!start) return if (start.hour() > 11) PM = true if (start.hour() < 12 && PM) start = start.add(1, 'd') - const stop = parseStop(item, start) + const stop = start.add(1, 'h') if (programs.length) { programs[programs.length - 1].stop = start } @@ -40,10 +41,6 @@ module.exports = { } } -function parseStop(item, date) { - return date.hour(7) -} - function parseStart(item, date) { let time = (item.querySelector('td > table > tbody > tr > td.time') || { textContent: '' }) .textContent