- August 30, 2011
- 644
- 79
- Home Country
-
United Kingdom
The logic should be something like this:
- If a recording is scheduled, check if there are other recordings scheduled for the same time.
- If so, check if any of them are unable to record with default priority list.
- If so, check if a change of priority will fix the conflict.
- If not, there is a conflict so the user needs to decide what to do.
Step 3 shouldn't be terribly complicated: simply check which channels are on which cards and start with those that are mapped to the lowest number of cards. For example, if channels 1-10 are mapped to two DVB-S2 cards and two DVB-T2 cards, but channels 11-20 are only mapped to DVB-S2, and the DVB-S2 cards have priority, then the following would create a conflict:
Record channel 1 at 18:00-20:00
Record channel 4 at 18:00-20:00
Record channel 12 at 19:00-21:00
However, if we check them again but starting with the ones with the lowest number of mapped cards, then we'd find that channel 12 needs to use DVB-S2, then channel 1 can be set to use DVB-S2 and channel 4 can be set to use DVB-T2. No conflict. This does probably require each scheduled recordings to have its own card priority list though (just listing a single card won't work because it might be being used for timeshifting).
- If a recording is scheduled, check if there are other recordings scheduled for the same time.
- If so, check if any of them are unable to record with default priority list.
- If so, check if a change of priority will fix the conflict.
- If not, there is a conflict so the user needs to decide what to do.
Step 3 shouldn't be terribly complicated: simply check which channels are on which cards and start with those that are mapped to the lowest number of cards. For example, if channels 1-10 are mapped to two DVB-S2 cards and two DVB-T2 cards, but channels 11-20 are only mapped to DVB-S2, and the DVB-S2 cards have priority, then the following would create a conflict:
Record channel 1 at 18:00-20:00
Record channel 4 at 18:00-20:00
Record channel 12 at 19:00-21:00
However, if we check them again but starting with the ones with the lowest number of mapped cards, then we'd find that channel 12 needs to use DVB-S2, then channel 1 can be set to use DVB-S2 and channel 4 can be set to use DVB-T2. No conflict. This does probably require each scheduled recordings to have its own card priority list though (just listing a single card won't work because it might be being used for timeshifting).