2013-05-15, 03:17
(2013-05-13, 06:50)Aubrien Wrote: @cfetzer
I decided to try and develop a fix for the instant recordings not ending on EPG endings. I created a patch file that will fix the issue and it is posted at the below location...
http://pastebin.com/fbvrbTZL
Basically what it does is looks for if the timer starts at 0 and this means that it is for an instant recording. I then search the database for the current program on the channel that the timer is for and I return a program object with the true end time in it. If the program is found in EPG then the myth recording rule end time is then adjusted to the correct end time based on EPG. If it is not found in EPG then the default instant recording duration from the main PVR options is used as a fallback.
To use the patch do the following...
- cd into the root of your xbmc-pvr-addons directory. I am using the latest from git://github.com/fetzerch/xbmc-pvr-addons.git
- copy the patch text from the above location into a new file named instant-recording-fix.patch
- run the below to apply the unified diff...
- Compile and install as usualCode:patch -p0 < instant-recording-fix.patch
This creates a manual recording rule in mythtv with the correct end time. You may have to run a 'make clean' when recompiling as I did. Seems to work well for me so hopefully this can find its way into the main codebase.
Very nice, I'll try this out tonight. Does this also fix instant recordings being named after the channel and not the actual show?