Commit graph

17 commits

Author SHA1 Message Date
freearhey
e505444f00 Update *.channels.xml 2025-04-27 03:19:30 +03:00
Toha
3fd6e47d4f
Site mytelly.co.uk now requires user agent.
Signed-off-by: Toha <tohenk@yahoo.com>
2025-03-28 21:11:08 +07:00
freearhey
f7c09afb84 Remove wrong xmltv_ids 2025-01-13 17:50:28 +03:00
freearhey
5df982bb7c Fix linter issues in sites/ 2025-01-01 12:27:22 +03:00
Toha
a5229d3af0 Simultaneous fetch is now external package.
Signed-off-by: Toha <tohenk@yahoo.com>
2024-12-20 19:54:59 +07:00
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
freearhey
8110659652 Add missing space 2024-12-17 20:14:19 +03:00
freearhey
28c8e3d74f Replace -- with --- in npm commands
Resolves https://github.com/iptv-org/epg/issues/2354

Details: https://github.com/npm/cli/issues/3136
2024-12-15 17:32:49 +03:00
Toha
aa04d9482e
Fetch detailed guide.
Signed-off-by: Toha <tohenk@yahoo.com>
2024-12-07 23:49:27 +07:00
Toha
81509d07c5
Refactor fetch worker as async function.
Signed-off-by: Toha <tohenk@yahoo.com>
2024-12-07 21:41:30 +07:00
Toha
4aa23fa862
Update mytelly.co.uk guide.
Test:

```sh
npm test -- mytelly.co.uk

> test
> run-script-os mytelly.co.uk

> test:win32
> SET "TZ=Pacific/Nauru" && npx jest --runInBand mytelly.co.uk

 PASS  sites/mytelly.co.uk/mytelly.co.uk.test.js
  √ can generate valid url (4 ms)
  √ can parse response (135 ms)
  √ can handle empty guide (1 ms)

Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        4.146 s, estimated 5 s
Ran all test suites matching /mytelly.co.uk/i.
```

Grab:

```sh
npm run grab -- --site=mytelly.co.uk

> grab
> npx tsx scripts/commands/epg/grab.ts --site=mytelly.co.uk

starting...
config:
  output: guide.xml
  maxConnections: 1
  gzip: false
  site: mytelly.co.uk
loading channels...
  found 488 channel(s)
run #1:
  [1/976] mytelly.co.uk (en) - 63/mtv-xmas - Dec 7, 2024 (14 programs)
  [2/976] mytelly.co.uk (en) - 63/mtv-xmas - Dec 8, 2024 (11 programs)
  ...
  [975/976] mytelly.co.uk (en) - TNTSports6.uk - Dec 8, 2024 (3 programs)
  [976/976] mytelly.co.uk (en) - SkySportsMix.uk - Dec 8, 2024 (17 programs)
  saving to "guide.xml"...
  done in 00h 04m 16s
```

Signed-off-by: Toha <tohenk@yahoo.com>
2024-12-07 21:07:16 +07:00
freearhey
71d4eb3555 Update mytelly.co.uk 2023-12-03 18:23:19 +03:00
freearhey
1c5d49638c Fixes xmltv_id 2023-11-27 14:56:49 +03:00
freearhey
52bde51dba Create mytelly.co.uk.channels.xml 2023-11-25 17:36:34 +03:00
freearhey
b622c63826 Create mytelly.co.uk.config.js 2023-11-25 17:36:27 +03:00
freearhey
d68041189f Create content.html 2023-11-25 17:36:06 +03:00
freearhey
9811ea7ccd Create mytelly.co.uk.test.js 2023-11-25 17:36:01 +03:00