Commit graph

17 commits

Author SHA1 Message Date
freearhey
5df982bb7c Fix linter issues in sites/ 2025-01-01 12:27:22 +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
5bdc1e8758 Merge branch 'osn.com-api' of https://github.com/tohenk/iptv-org-epg into pr/2206 2023-11-06 23:43:29 +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
Toha
01ef513ef2
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-05 13:55:24 +07: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
PopeyeTheSai10r
5dce3a353f
Update osn.com.config.js 2023-01-14 12:55:07 -08:00
Aleksandr Statciuk
f97f1b55c9 Adds the number of days to config.js 2023-01-10 12:40:01 +03:00
Aleksandr Statciuk
18a4c8f305 Merge channels.xml 2023-01-05 15:28:24 +03:00
Aleksandr Statciuk
69be299373 Update osn.com 2022-02-01 05:23:43 +03:00
Aleksandr Statciuk
052375dbe7 Add English version 2022-01-13 20:48:21 +03:00
Aleksandr Statciuk
6ce6e2d44b Fix osn.com 2022-01-13 20:19:09 +03:00
Aleksandr Statciuk
25272dade5 Update osn.com.config.js 2021-11-18 17:59:32 +03:00
Aleksandr Statciuk
87e3216e0e Update osn.com.config.js 2021-11-17 13:49:24 +03:00
Aleksandr Statciuk
813aeaf390 Update osn.com.config.js 2021-10-31 23:11:57 +03:00
Aleksandr Statciuk
eaa0b2bc75 Create osn.com.config.js 2021-10-29 04:08:47 +03:00