mirror of
https://github.com/iptv-org/epg
synced 2026-05-01 23:17:00 -04:00
Update /sites
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="berrymedia.co.kr">
|
||||
<channels>
|
||||
<channel lang="ko" xmltv_id="BallTV.kr" site_id="6">BallTV</channel>
|
||||
<channel lang="ko" xmltv_id="CookTV.kr" site_id="2">CookTV</channel>
|
||||
<channel lang="ko" xmltv_id="GMTV.kr" site_id="4">GMTV</channel>
|
||||
<channel lang="ko" xmltv_id="GTV.kr" site_id="">GTV</channel>
|
||||
<channel lang="ko" xmltv_id="LifeSportsTV.kr" site_id="3">생활체육TV</channel>
|
||||
<channel lang="ko" xmltv_id="UHDDreamTV.kr" site_id="5">UHDDreamTV</channel>
|
||||
</channels>
|
||||
</site>
|
||||
<channels>
|
||||
<channel site="berrymedia.co.kr" lang="ko" xmltv_id="BallTV.kr" site_id="6">BallTV</channel>
|
||||
<channel site="berrymedia.co.kr" lang="ko" xmltv_id="CookTV.kr" site_id="2">CookTV</channel>
|
||||
<channel site="berrymedia.co.kr" lang="ko" xmltv_id="GMTV.kr" site_id="4">GMTV</channel>
|
||||
<channel site="berrymedia.co.kr" lang="ko" xmltv_id="GTV.kr" site_id="">GTV</channel>
|
||||
<channel site="berrymedia.co.kr" lang="ko" xmltv_id="LifeSportsTV.kr" site_id="3">생활체육TV</channel>
|
||||
<channel site="berrymedia.co.kr" lang="ko" xmltv_id="UHDDreamTV.kr" site_id="5">UHDDreamTV</channel>
|
||||
</channels>
|
||||
|
||||
@@ -86,7 +86,7 @@ function parseRating($item) {
|
||||
: null
|
||||
}
|
||||
|
||||
function parseItems(content, channel, date) {
|
||||
function parseItems(content) {
|
||||
const $ = cheerio.load(content)
|
||||
|
||||
return $('.sc_time dd').toArray()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// npx epg-grabber --config=sites/berrymedia.co.kr/berrymedia.co.kr.config.js --channels=sites/berrymedia.co.kr/berrymedia.co.kr.channels.xml --output=guide.xml --days=2
|
||||
// npm run grab -- --site=berrymedia.co.kr
|
||||
|
||||
const { parser, url, request } = require('./berrymedia.co.kr.config.js')
|
||||
const fs = require('fs')
|
||||
@@ -49,7 +49,7 @@ it('can parse response', () => {
|
||||
expect(results[0]).toMatchObject({
|
||||
start: '2023-01-25T15:00:00.000Z',
|
||||
stop: '2023-01-25T16:00:00.000Z',
|
||||
title: `더트롯쇼`,
|
||||
title: '더트롯쇼',
|
||||
category: '연예/오락',
|
||||
rating: {
|
||||
system: 'KMRB',
|
||||
@@ -60,7 +60,7 @@ it('can parse response', () => {
|
||||
expect(results[17]).toMatchObject({
|
||||
start: '2023-01-26T13:50:00.000Z',
|
||||
stop: '2023-01-26T14:20:00.000Z',
|
||||
title: `나는 자연인이다`,
|
||||
title: '나는 자연인이다',
|
||||
category: '교양',
|
||||
rating: {
|
||||
system: 'KMRB',
|
||||
|
||||
Reference in New Issue
Block a user