epg/sites/tivie.id/readme.md
Toha d7b281304b
Add site tivie.id.
Test:

```sh
npm test --- tivie.id

> test
> run-script-os tivie.id

> test:win32
> SET "TZ=Pacific/Nauru" && npx jest --runInBand tivie.id

 PASS  sites/tivie.id/tivie.id.test.js
  √ can generate valid url (4 ms)
  √ can parse response (767 ms)
  √ can handle empty guide (1 ms)

Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        5.273 s, estimated 6 s
Ran all test suites matching /tivie.id/i.
```

Grab:

```sh
npm run grab --- --site=tivie.id

> grab
> npx tsx scripts/commands/epg/grab.ts --site=tivie.id

starting...
config:
  output: guide.xml
  maxConnections: 1
  gzip: false
  site: tivie.id
loading channels...
  found 50 channel(s)
run #1:
Unable to fetch https://tivie.id/film/as%cc%85oka-nwzDnwvClgf4: Request failed with status code 404!
  [1/100] tivie.id (id) - ANTV.id - Dec 31, 2024 (15 programs)
  [2/100] tivie.id (id) - ANTV.id - Jan 1, 2025 (13 programs)
  ...
  [99/100] tivie.id (id) - SindoNewsTV.id - Dec 31, 2024 (22 programs)
  [100/100] tivie.id (id) - SEAToday.id - Jan 1, 2025 (37 programs)
  saving to "guide.xml"...
  done in 00h 08m 58s
```

Signed-off-by: Toha <tohenk@yahoo.com>
2025-01-01 00:19:15 +07:00

296 B

tivie.id

https://tivie.id

Download the guide

npm run grab --- --site=tivie.id

Update channel list

npm run channels:parse --- --config=./sites/tivie.id/tivie.id.config.js --output=./sites/tivie.id/tivie.id.channels.xml

Test

npm test --- tivie.id