Toha
|
c54509f95e
|
Update sky.com guide.
Test:
```sh
npm test -- /sky.com
> test
> run-script-os /sky.com
> test:win32
> SET "TZ=Pacific/Nauru" && npx jest --runInBand /sky.com
PASS sites/sky.com/sky.com.test.js
√ can generate valid url (3 ms)
√ can parse response (11 ms)
√ can handle empty guide
Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 3.533 s, estimated 4 s
Ran all test suites matching /\\sky.com/i.
```
Grab:
```sh
npm run grab -- --site=sky.com
> grab
> npx tsx scripts/commands/epg/grab.ts --site=sky.com
starting...
config:
output: guide.xml
maxConnections: 1
gzip: false
site: sky.com
loading channels...
found 558 channel(s)
run #1:
[1/1116] sky.com (en) - 1009 - Dec 14, 2024 (35 programs)
[2/1116] sky.com (en) - 1009 - Dec 15, 2024 (34 programs)
...
[1115/1116] sky.com (en) - SkySportsNews.uk - Dec 15, 2024 (26 programs)
[1116/1116] sky.com (en) - TLCHD.uk - Dec 14, 2024 (30 programs)
saving to "guide.xml"...
done in 00h 04m 32s
```
Signed-off-by: Toha <tohenk@yahoo.com>
|
2024-12-15 03:46:36 +07:00 |
|