David Engel wrote:
...
My quick hack is attached.  It's admittedly going to be somewhat
inefficient due to its brute force nature.  However, it leverages the
existing scheduler logic by sticking with the concept of throwing all
combinations into the mix, assigning priorities (either explicitly or
implicitly) and seeing what comes out the other end.

Here is virtually the same set of tests as yesterday. "Rap City Top 10"
is one hour shown at 1 and 5. "The New Detectives" is one hour shown at
2pm only.

Single record Rap City is padded from 12:57 to 2:10:

--- print list start ---
Title - Subtitle                    Chan ChID Day Start  End   S C I  T N Pri
Rap City Top 10 - "Black College To   27 1027  01 12:57-14:10  1 1 1  S 1   3

Adding New Detectives drops the padding in between:

Rap City Top 10 - "Black College To   27 1027  01 12:57-14:00  1 1 1  S 1   3
The New Detectives - "Murderous Att   25 1025  01 14:00-15:10  1 1 1  S 1   3

Endoffset +1 for Rap City and there is a hard conflict.

Rap City Top 10 - "Black College To   27 1027  01 12:57-14:11  1 1 1  S 1   3
The New Detectives - "Murderous Att   25 1025  01 13:57-15:10  1 0 0  S C   3

Changing Rap City to Channel chooses the later showing:

Rap City Top 10 - "Black College To   27 1027  01 12:57-14:11  1 0 0  C L   0
The New Detectives - "Murderous Att   25 1025  01 13:57-15:10  1 1 1  S 1   3
Rap City Top 10 - "Black College To   27 1027  01 16:57-18:11  1 1 1  C 1   0

Change the endoffset back and it still chooses the later showing
to make room for soft time:

Rap City Top 10 - "Black College To   27 1027  01 12:57-14:10  1 0 0  C L   0
The New Detectives - "Murderous Att   25 1025  01 13:57-15:10  1 1 1  S 1   3
Rap City Top 10 - "Black College To   27 1027  01 16:57-18:10  1 1 1  C 1   0

Change the endoffset to -11 and it still chooses the later showing
to make room for all soft time:

Rap City Top 10 - "Black College To   27 1027  01 12:57-13:59  1 0 0  C L   0
The New Detectives - "Murderous Att   25 1025  01 13:57-15:10  1 1 1  S 1   3
Rap City Top 10 - "Black College To   27 1027  01 16:57-17:59  1 1 1  C 1   0

Change Rap City to Single and priority +1 (total 4). There is room for
either softend of RC or softstart of ND but not both. It chooses the
softend for RC because it is higher priority:

Rap City Top 10 - "Black College To   27 1027  01 12:57-13:59  1 1 1  S 1   4
The New Detectives - "Murderous Att   25 1025  01 14:00-15:10  1 1 1  S 1   3

Rap City priority -1 prefers the softstart for New Detectives:

Rap City Top 10 - "Black College To   27 1027  01 12:57-13:49  1 1 1  S 1   2
The New Detectives - "Murderous Att   25 1025  01 13:57-15:10  1 1 1  S 1   3

--  bjm
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to