Commit Graph

14 Commits

Author SHA1 Message Date
freearhey b6a589c62a Replace LF line endings with CRLF 2025-09-28 17:55:05 +03:00
freearhey 29aa427923 Replace LF endings with CRLF 2025-07-31 22:29:01 +03: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
Toha ccd1d3a863 Fix firstmedia.com schedule api start time.
The correct start time for schedule is 1. Settings start time to 0
will mix the schedules from next day.
2023-11-10 20:00:19 +07:00
freearhey 31b8509301 Merge branch 'fix-firstmedia.com-mislead' of https://github.com/tohenk/iptv-org-epg into pr/2217 2023-11-08 06:41:07 +03:00
Toha 4540181187 Fix firstmedia.com schedule mislead.
The retrieved schedules from firstmedia.com api indeed confusing. Taken for example
the following snippet:

```
{
  channelNo: '245',
  title: 'News Bulletin',
  date: '2023-11-07 17:00:00',
  startTime: '2023-11-07 17:00:00',
  endTime: '2023-11-07 17:30:00',
  description: 'News Bulletin',
  long_description: 'Hourly update of international news with an emphasis on the Arab world.'
}
```

Neither `startTime` nor `endTime` is an actual time but an offset from `date`.
If its an actual time then it would overlap with each others.

The workaround is to calculate the start and stop time offset, sort the schedules
based on those offset, and last skip overlapped schedules.

Signed-off-by: Toha <tohenk@yahoo.com>
2023-11-08 09:03:41 +07:00
Toha 6096bee441 Fix firstmedia.com schedule mislead.
The retrieved schedules from firstmedia.com api indeed confusing. Taken for example
the following snippet:

```json
{
  channelNo: '245',
  title: 'News Bulletin',
  date: '2023-11-07 17:00:00',
  startTime: '2023-11-07 17:00:00',
  endTime: '2023-11-07 17:30:00',
  description: 'News Bulletin',
  long_description: 'Hourly update of international news with an emphasis on the Arab world.'
}
```

Neither `startTime` nor `endTime` is an actual time but an offset from `date`.
If its an actual time then it would overlap with each others.

The workaround is to calculate the start and stop time offset, sort the schedules
based on those offset, and last skip overlapped schedules.

Signed-off-by: Toha <tohenk@yahoo.com>
2023-11-07 14:42:22 +07:00
Toha cb7aa76810 Update firstmedia.com channels.
Signed-off-by: Toha <tohenk@yahoo.com>
2023-11-05 21:14:34 +07:00
Toha d31d4a5736 Update firstmedia.com TV guide api.
Signed-off-by: Toha <tohenk@yahoo.com>
2023-11-04 00:47:03 +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
liimee ee035fc676 increase timeout for firstmedia.com 2023-06-21 17:04:12 +07:00
ta 751fb1e7a5 improve firstmedia 2023-06-15 17:05:09 +07:00
liimee 66360221ff init firstmedia 2023-06-15 16:45:08 +07:00