Commit Graph

11 Commits

Author SHA1 Message Date
PopeyeTheSai10r
14d8819d24 osn channels 2026-02-14 05:40:24 -08:00
iptv-bot[bot]
57033a9cd0 [Bot] Format *.channels.xml files
Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [format](https://github.com/iptv-org/epg/actions/runs/19200365431) workflow.
2025-11-08 23:55:33 +00:00
freearhey
b6a589c62a Replace LF line endings with CRLF 2025-09-28 17:55:05 +03:00
freearhey
e505444f00 Update *.channels.xml 2025-04-27 03:19:30 +03:00
freearhey
f7c09afb84 Remove wrong xmltv_ids 2025-01-13 17:50:28 +03:00
Toha
1d3008d144 Update osn.com guide.
Test

```
npm test -- osn.com

> test
> run-script-os osn.com

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

 PASS  sites/osn.com/osn.com.test.js (5.194 s)
  √ can generate valid request headers (6 ms)
  √ can generate valid url (2 ms)
  √ can parse response (ar) (112 ms)
  √ can parse response (en) (9 ms)
  √ can handle empty guide (1 ms)

Test Suites: 1 passed, 1 total
Tests:       5 passed, 5 total
Snapshots:   0 total
Time:        5.499 s
Ran all test suites matching /osn.com/i.
```

Grab

```
npm run grab -- --site=osn.com --lang=ar

> grab
> npx tsx scripts/commands/epg/grab.ts --site=osn.com --lang=ar

starting...
config:
  output: guide.xml
  maxConnections: 1
  gzip: false
  site: osn.com
  lang: ar
loading channels...
  found 59 channel(s)
run #1:
  [1/118] osn.com (ar) - DWR - Nov 27, 2024 (24 programs)
  [2/118] osn.com (ar) - DWR - Nov 28, 2024 (24 programs)
  ...
  [117/118] osn.com (ar) - OSNYahalaBilArabi.ae - Nov 28, 2024 (29 programs)
  [118/118] osn.com (ar) - TheFilipinoChannelMiddleEast.us - Nov 28, 2024 (30 programs)
  saving to "guide.xml"...
  done in 00h 01m 23s
```

Signed-off-by: Toha <tohenk@yahoo.com>
2024-11-27 20:42:06 +07:00
freearhey
3981133fea Fixes xmltv_id 2023-12-03 20:50:00 +03:00
freearhey
ddc13bb194 Update osn.com 2023-12-03 19:03:44 +03:00
freearhey
e9fdc45f91 Fixes xmltv_id 2023-11-15 10:03:21 +03:00
Toha
646bd52c74 Update osn.com TV guide api.
The guide now uses GET request and the language returned by api is detected by
the referrer.

Signed-off-by: Toha <tohenk@yahoo.com>
2023-11-06 09:13:06 +07:00
freearhey
c0cfcf7a47 Update /sites 2023-10-02 06:35:33 +03:00