Update dsmart.com.tr guide.

Test:

```sh
npm test --- dsmart.com.tr

> test
> run-script-os dsmart.com.tr

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

 PASS  sites/dsmart.com.tr/dsmart.com.tr.test.js
  √ can generate valid url (6 ms)
  √ can parse response (14 ms)
  √ can handle empty guide (2 ms)

Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total
Snapshots:   0 total
Time:        0.828 s, estimated 1 s
Ran all test suites matching /dsmart.com.tr/i.
```

Grab:

```sh
npm run grab --- --site=dsmart.com.tr

> grab
> npx tsx scripts/commands/epg/grab.ts --site=dsmart.com.tr

starting...
config:
  output: guide.xml
  maxConnections: 1
  gzip: false
  site: dsmart.com.tr
loading channels...
  found 104 channel(s)
run #1:
  [1/208] dsmart.com.tr (tr) - 5d25dbe5cfef0b5761a051db - Jan 13, 2025 (38 programs)
  [2/208] dsmart.com.tr (tr) - 5d25dbe5cfef0b5761a051db - Jan 14, 2025 (36 programs)
  ...
  [207/208] dsmart.com.tr (tr) - 58d29bb0eefad3db9c6062b4 - Jan 14, 2025 (35 programs)
  [208/208] dsmart.com.tr (tr) - 58d29bb0eefad3db9c6062b4 - Jan 13, 2025 (41 programs)
  saving to "guide.xml"...
  done in 00h 00m 12s
```

Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
Toha committed 2025-01-13 13:36:53 +07:00
1 parent 767aa12ef8
commit 8be65cc04f
7 files changed
+264 -326

No files matched your search

+1 -1
View File
@@ -1 +1 @@
{"meta": {"code": 200, "message": "OK"}, "data": {"total": 203, "channels": [{"rating": 3, "ch_id": 805, "logo": "59f97253cfef0b75f4723ded", "ch_no": 1, "is_hd": true, "genre": [1, 2], "packages": ["58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62", "58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60"], "slug": "moviesmart-premium", "hd": true, "_id": "58d29bb0eefad3db9c606290", "order": 1, "channel_name": "MovieSmart Premium", "description": "", "schedule": []}, {"rating": 3, "ch_id": 808, "logo": "59f9725ccfef0b75f4723df0", "ch_no": 2, "is_hd": true, "genre": [1, 2], "packages": ["58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "moviesmart-premium-2", "hd": true, "_id": "58d29bb0eefad3db9c606291", "order": 2, "channel_name": "MovieSmart Premium 2", "description": "", "schedule": []}, {"logo": "", "ch_no": 3, "genre": [2], "packages": ["58cfc9c7e138237a591f9a62", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a5f"], "slug": "sinema-tv", "_id": "5fe07d7acfef0b1593275751", "order": 3, "channel_name": "Sinema TV", "schedule": []}, {"logo": "", "ch_no": 4, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-2", "_id": "5fe07d9fcfef0b1593275754", "order": 4, "channel_name": "Sinema TV 2", "schedule": []}, {"logo": "", "ch_no": 5, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-aksiyon", "_id": "5fe07dd5cfef0b1593275758", "order": 5, "channel_name": "Sinema TV Aksiyon", "schedule": []}, {"logo": "", "ch_no": 6, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-aksiyon-2", "_id": "5fe07e23cfef0b15932757a1", "order": 6, "channel_name": "Sinema TV Aksiyon 2", "schedule": []}, {"logo": "", "ch_no": 7, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-aile", "_id": "5fe07e42cfef0b15932757a3", "order": 7, "channel_name": "Sinema TV Aile", "schedule": []}, {"logo": "", "ch_no": 8, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-aile-2", "_id": "5fe07eabcfef0b15932757a6", "order": 8, "channel_name": "Sinema TV Aile 2", "schedule": []}, {"logo": "", "ch_no": 9, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-comedy", "_id": "5fe07f29cfef0b1593275800", "order": 9, "channel_name": "Sinema TV Comedy", "schedule": []}, {"logo": "", "ch_no": 10, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-comedy-2", "_id": "5fe07f45cfef0b159327581f", "order": 10, "channel_name": "Sinema TV Comedy 2", "schedule": []}, {"logo": "", "ch_no": 11, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-1001", "_id": "5fe07f5dcfef0b1593275822", "order": 11, "channel_name": "Sinema TV 1001", "schedule": []}, {"logo": "", "ch_no": 12, "genre": [2], "packages": ["58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "sinema-tv-1002", "_id": "5fe07f72cfef0b159327585a", "order": 12, "channel_name": "Sinema TV 1002", "schedule": []}, {"rating": 3, "ch_id": 879, "logo": "59f19761cfef0b221f7da7e6", "ch_no": 13, "is_hd": false, "genre": [1, 2], "packages": ["58cfc9c7e138237a591f9a60", "58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62", "58cfc9c7e138237a591f9a5f"], "slug": "filmbox", "hd": true, "_id": "58d29bb0eefad3db9c6062ba", "order": 13, "channel_name": "FilmBox", "description": "", "schedule": []}, {"rating": 3, "ch_id": 831, "logo": "59f97297cfef0b75f4723f91", "ch_no": 14, "is_hd": true, "genre": [1, 2], "packages": ["58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62"], "slug": "moviesmart-classic", "hd": true, "_id": "58d29bb0eefad3db9c60629a", "order": 14, "channel_name": "MovieSmart Classic", "description": "", "schedule": []}, {"rating": 3, "ch_id": 830, "logo": "59f972a1cfef0b75f4723f94", "ch_no": 15, "is_hd": true, "genre": [1, 2], "packages": ["58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62", "58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60"], "slug": "moviesmart-turk", "hd": true, "_id": "58d29bb0eefad3db9c606299", "order": 15, "channel_name": "MovieSmart T\u00fcrk", "description": "", "schedule": []}, {"rating": 3, "ch_id": 692, "logo": "59f972a9cfef0b75f4723f97", "ch_no": 16, "is_hd": true, "genre": [1, 4], "packages": ["58cfc9c7e138237a591f9a61",Line truncated
{"meta": {"code": 200, "message": "OK"}, "data": {"total": 218, "channels": []}}