[mythtv] Implementing a New Scheduler type
Stuart Auchterlonie
stuarta at squashedfrog.net
Tue Nov 15 09:10:22 EST 2005
I'm looking to implement a new scheduling type and am
looking for comments, theories on best way to implement it.
The situation. In the UK, and numerous other places, the stations
like showing movies with a 1-5 min news break in the middle. This
would look like the following in the guide data.
A B C
where A is the movie of interest, B is the newsbreak and
C is the rest of the movie.
Now because the program is in two pieces you cannot use a find
one showing schedule type, since you will only get 1/2 a program.
I want to make a new schedule type I'm calling FindOne Disjointed
which would record the show A right through to the ending time of
show C. A bit of extra disk space for a movie with an extra long
bit in the middle to cut out later.
The way I do this know is to pick a specific showing of A and
set an overrecordtime that gets it to the end of C. Works but
could be improved upon.
Sample movie from the guide data.
+--------+---------------------+---------------------+--------------+
| chanid | starttime | endtime | title |
+--------+---------------------+---------------------+--------------+
| 1006 | 2005-11-16 23:30:00 | 2005-11-17 00:28:00 | Total Recall |
| 1006 | 2005-11-17 00:30:00 | 2005-11-17 01:40:00 | Total Recall |
| 1006 | 2005-11-17 22:00:00 | 2005-11-17 22:58:00 | Total Recall |
| 1006 | 2005-11-17 23:00:00 | 2005-11-18 00:10:00 | Total Recall |
+--------+---------------------+---------------------+--------------+
The logic of assembling these four bits together into two shows is
pretty simple, just what is the best way to weld this into the
scheduler.
Comments & Thoughts?
Stuart
More information about the mythtv-dev
mailing list