Update gatotv.com
This commit is contained in:
@@ -12,11 +12,6 @@ module.exports = {
|
||||
url: function ({ channel, date }) {
|
||||
return `https://www.gatotv.com/canal/${channel.site_id}/${date.format('YYYY-MM-DD')}`
|
||||
},
|
||||
logo({ content }) {
|
||||
const $ = cheerio.load(content)
|
||||
|
||||
return $('.div_MainPicture img').attr('src')
|
||||
},
|
||||
parser: function ({ content, date }) {
|
||||
let programs = []
|
||||
const items = parseItems(content)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// node ./scripts/channels.js --config=./sites/gatotv.com/gatotv.com.config.js --output=./sites/gatotv.com/gatotv.com_cr.channels.xml --set=country:costa_rica
|
||||
// npx epg-grabber --config=sites/gatotv.com/gatotv.com.config.js --channels=sites/gatotv.com/gatotv.com_ar.channels.xml --output=.gh-pages/guides/ar/gatotv.com.epg.xml --days=2
|
||||
|
||||
const { parser, url, request, logo } = require('./gatotv.com.config.js')
|
||||
const { parser, url, request } = require('./gatotv.com.config.js')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
@@ -19,12 +19,6 @@ it('can generate valid url', () => {
|
||||
expect(url({ channel, date })).toBe('https://www.gatotv.com/canal/13_de_argentina/2021-11-13')
|
||||
})
|
||||
|
||||
it('can get logo url', () => {
|
||||
expect(logo({ content })).toBe(
|
||||
'https://imagenes.gatotv.com/logos/canales/oscuros/13_de_argentina-mediano.png'
|
||||
)
|
||||
})
|
||||
|
||||
it('can parse response', () => {
|
||||
const result = parser({ date, channel, content }).map(p => {
|
||||
p.start = p.start.toJSON()
|
||||
|
||||
Reference in New Issue
Block a user