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
..
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-22 16:35:04 -05:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-11-05 23:45:41 +07:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-19 19:40:10 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-11-08 09:03:41 +07:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-11-05 20:03:56 +07:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-24 14:59:35 -05:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-19 19:34:04 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-11-05 22:27:44 +07:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-11-06 23:47:54 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-11-04 15:51:09 -04:00
2023-10-15 14:08:23 +03:00
2023-11-05 23:24:47 +07:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-11-06 10:26:14 +07:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00
2023-10-15 14:08:23 +03:00