mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update /sites
This commit is contained in:
parent
ca254a6df0
commit
c0cfcf7a47
543 changed files with 30781 additions and 31187 deletions
|
@ -1,6 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="streamingtvguides.com">
|
||||
<channels>
|
||||
<channel lang="en" xmltv_id="GMAPinoyTVUSACanada.ph" site_id="GMAPNY">GMA Pinoy TV</channel>
|
||||
</channels>
|
||||
</site>
|
||||
<channels>
|
||||
<channel site="streamingtvguides.com" lang="en" xmltv_id="GMAPinoyTVUSACanada.ph" site_id="GMAPNY">GMA Pinoy TV</channel>
|
||||
</channels>
|
||||
|
|
|
@ -58,7 +58,7 @@ function parseStart($item) {
|
|||
|
||||
function parseStop($item) {
|
||||
const date = $item('.card-body').clone().children().remove().end().text().trim()
|
||||
const [_, time] = date.split(' - ')
|
||||
const [, time] = date.split(' - ')
|
||||
|
||||
return dayjs.tz(time, 'YYYY-MM-DD HH:mm:ss [PST]', 'PST').utc()
|
||||
}
|
||||
|
@ -66,5 +66,5 @@ function parseStop($item) {
|
|||
function parseItems(content) {
|
||||
const $ = cheerio.load(content)
|
||||
|
||||
return $(`.container`).toArray()
|
||||
return $('.container').toArray()
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// npx epg-grabber --config=sites/streamingtvguides.com/streamingtvguides.com.config.js --channels=sites/streamingtvguides.com/streamingtvguides.com.channels.xml --output=guide.xml
|
||||
// npm run grab -- --site=streamingtvguides.com
|
||||
|
||||
const { parser, url } = require('./streamingtvguides.com.config.js')
|
||||
const fs = require('fs')
|
||||
|
@ -33,14 +33,14 @@ it('can parse response', () => {
|
|||
expect(results[0]).toMatchObject({
|
||||
start: '2023-06-27T00:40:00.000Z',
|
||||
stop: '2023-06-27T02:00:00.000Z',
|
||||
title: `24 Oras`,
|
||||
title: '24 Oras',
|
||||
description: 'Up to the minute news around the world.'
|
||||
})
|
||||
|
||||
expect(results[37]).toMatchObject({
|
||||
start: '2023-06-27T21:50:00.000Z',
|
||||
stop: '2023-06-28T00:00:00.000Z',
|
||||
title: `Eat Bulaga`,
|
||||
title: 'Eat Bulaga',
|
||||
description: 'Rousing and engrossing segments with engaging hosts.'
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue