useetv.com is now indihometv.com

Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
Toha
2023-01-23 21:32:46 +07:00
parent 36777a1475
commit e52ab72334
5 changed files with 10 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<site site="useetv.com">
<site site="indihometv.com">
<channels>
<channel lang="id" xmltv_id="UseePrime.id" site_id="useeprime">UseePrime</channel>
<channel lang="id" xmltv_id="UseePhoto.id" site_id="useephoto">Usee Photo</channel>
@@ -152,6 +152,6 @@
</site>
<!--
Get all channels from https://www.useetv.com/tv/live:
[...document.querySelectorAll('.channel-item')].map(el => `<channel lang="id" xmltv_id="${el.dataset.name.replaceAll(' ', '')}.id" site_id="${el.href.replace('https://www.useetv.com/livetv/', '')}">${el.dataset.name}</channel>`).join('\n')
Get all channels from https://www.indihometv.com/tvod:
[...document.querySelectorAll('.channel-item')].map(el => `<channel lang="id" xmltv_id="${el.dataset.name.replaceAll(' ', '')}.id" site_id="${el.href.replace('https://www.indihometv.com/tvod/', '')}">${el.dataset.name}</channel>`).join('\n')
-->

View File

@@ -9,10 +9,10 @@ dayjs.extend(timezone)
dayjs.extend(customParseFormat)
module.exports = {
site: 'useetv.com',
site: 'indihometv.com',
days: 2,
url({ channel }) {
return `https://www.useetv.com/tvod/${channel.site_id}`
return `https://www.indihometv.com/tvod/${channel.site_id}`
},
parser({ content, date }) {
const programs = []

View File

@@ -1,6 +1,6 @@
// npx epg-grabber --config=sites/useetv.com/useetv.com.config.js --channels=sites/useetv.com/useetv.com.channels.xml --output=guide.xml --timeout=30000 --days=2
// npx epg-grabber --config=sites/indihometv.com/indihometv.com.config.js --channels=sites/indihometv.com/indihometv.com.channels.xml --output=guide.xml --timeout=30000 --days=2
const { parser, url, request } = require('./useetv.com.config.js')
const { parser, url, request } = require('./indihometv.com.config.js')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
dayjs.extend(utc)
@@ -13,7 +13,7 @@ const channel = {
const content = `<!DOCTYPE html><html><head></head><body><section class="live-tv-channels" id="top"><div><div class="schedule-list"><div id="pills-2022-08-08"><div class="row"><div><a class="schedule-item"><span class="replay"></span><p>07:00 - 07:05</p><b>Headline News</b></a></div><div><a class="schedule-item"><span class="replay"></span><p>07:05 - 07:30</p><b>Editorial Media Indonesia</b></a></div><div><a class="schedule-item"><span class="replay"></span><p>07:30 - 07:45</p><b>Editorial Media Indonesia</b></a></div><div><a class="schedule-item"><span class="replay"></span><p>07:45 - 08:00</p><b>Editorial Media Indonesia</b></a></div></div></div></div></div></section></body>`
it('can generate valid url', () => {
expect(url({ channel })).toBe('https://www.useetv.com/tvod/metrotv')
expect(url({ channel })).toBe('https://www.indihometv.com/tvod/metrotv')
})
it('can parse response', () => {