Commit Graph

12 Commits

Author SHA1 Message Date
freearhey b6a589c62a Replace LF line endings with CRLF 2025-09-28 17:55:05 +03:00
freearhey ca219de82d Replaced LF endings with CRLF 2025-07-29 05:28:59 +03:00
theofficialomega 851aba2438 finish uniformizing tests 2025-07-27 19:49:44 +02:00
freearhey 8e7675933f Update firstmedia.com 2023-12-03 15:36:35 +03:00
freearhey 3e3687035c Update firstmedia.com 2023-11-19 13:30:08 +03: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
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 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
ta 751fb1e7a5 improve firstmedia 2023-06-15 17:05:09 +07:00
liimee 66360221ff init firstmedia 2023-06-15 16:45:08 +07:00