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
No known key found for this signature in database
GPG key ID: 2D7AA6389D44DCAB
5 changed files with 10 additions and 10 deletions

View file

@ -1,4 +1,4 @@
name: useetv.com
name: indihometv.com
on:
schedule:
- cron: '0 7 * * *'

View file

@ -517,7 +517,7 @@ You can also find the link to the guide by the name of the channel via https://i
<tbody>
<tr><td valign="top" rowspan="1"><a href="https://mncvision.id">mncvision.id</a></td><td align="right" nowrap>95</td><td nowrap><code>https://iptv-org.github.io/epg/guides/id/mncvision.id.xml</code></td><td nowrap><a href="https://github.com/iptv-org/epg/actions/workflows/mncvision.id.yml"><img src="https://github.com/iptv-org/epg/actions/workflows/mncvision.id.yml/badge.svg" alt="mncvision.id" style="max-width: 100%;"></a></td></tr>
<tr><td valign="top" rowspan="1"><a href="https://transvision.co.id">transvision.co.id</a></td><td align="right" nowrap>63</td><td nowrap><code>https://iptv-org.github.io/epg/guides/id/transvision.co.id.xml</code></td><td nowrap><a href="https://github.com/iptv-org/epg/actions/workflows/transvision.co.id.yml"><img src="https://github.com/iptv-org/epg/actions/workflows/transvision.co.id.yml/badge.svg" alt="transvision.co.id" style="max-width: 100%;"></a></td></tr>
<tr><td valign="top" rowspan="1"><a href="https://useetv.com">useetv.com</a></td><td align="right" nowrap>115</td><td nowrap><code>https://iptv-org.github.io/epg/guides/id/useetv.com.xml</code></td><td nowrap><a href="https://github.com/iptv-org/epg/actions/workflows/useetv.com.yml"><img src="https://github.com/iptv-org/epg/actions/workflows/useetv.com.yml/badge.svg" alt="useetv.com" style="max-width: 100%;"></a></td></tr>
<tr><td valign="top" rowspan="1"><a href="https://indihometv.com">indihometv.com</a></td><td align="right" nowrap>115</td><td nowrap><code>https://iptv-org.github.io/epg/guides/id/indihometv.com.xml</code></td><td nowrap><a href="https://github.com/iptv-org/epg/actions/workflows/indihometv.com.yml"><img src="https://github.com/iptv-org/epg/actions/workflows/indihometv.com.yml/badge.svg" alt="indihometv.com" style="max-width: 100%;"></a></td></tr>
<tr><td valign="top" rowspan="1"><a href="https://vidio.com">vidio.com</a></td><td align="right" nowrap>52</td><td nowrap><code>https://iptv-org.github.io/epg/guides/id/vidio.com.xml</code></td><td nowrap><a href="https://github.com/iptv-org/epg/actions/workflows/vidio.com.yml"><img src="https://github.com/iptv-org/epg/actions/workflows/vidio.com.yml/badge.svg" alt="vidio.com" style="max-width: 100%;"></a></td></tr>
</tbody>
</table>

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', () => {