Commit graph

9 commits

Author SHA1 Message Date
Toha
916b5f5234 Use simultaneous fetch helper.
- Introduce fetch helper for site to fetch guide simultaneously.
- Clean-up unused requires.
- Updated tv.yandex.ru cookies.

Signed-off-by: Toha <tohenk@yahoo.com>
2024-12-20 19:54:59 +07:00
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
freearhey
bb6771f539 Replaces icon with image 2024-06-24 16:49:35 +03:00
freearhey
a3a594dfac Update sky.com 2023-11-27 14:48:00 +03:00
freearhey
63c86a2b30 Fixes linter errors 2023-10-15 14:08:23 +03:00
freearhey
c0cfcf7a47 Update /sites 2023-10-02 06:35:33 +03:00
Aleksandr Statciuk
f97f1b55c9 Adds the number of days to config.js 2023-01-10 12:40:01 +03:00
Aleksandr Statciuk
114ba47361 Update sky.com 2022-02-01 05:35:41 +03:00
aarubui
f3ab134146 Create sky.com.config.js 2021-12-16 07:27:24 +11:00