diff --git a/docs/html/config_channels.html b/docs/html/config_channels.html index a95d3cee..3160645c 100644 --- a/docs/html/config_channels.html +++ b/docs/html/config_channels.html @@ -44,13 +44,15 @@
Allows the user to specify an amout of extra time that should be prepended to a recording scheduled on this channel. In other words, if you type 5 here for a recording that is scheduled - for 20:00 will start to record at 19:55. + for 20:00 will start to record at 19:55. This setting overrides the + Extra time before recordings DVR setting.
DVR Post-End
Similar to DVR Pre-Start this allows the user to add an extra amount of time that should be appended to a recording. In other words, if you type 5 here for a recording that is scheduled - to end 20:30 will stop to record at 20:35. + to end 20:30 will stop to record at 20:35. This setting overrides the + Extra time after recordings DVR setting. diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index 8c4c02ea..48ee1194 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -159,8 +159,14 @@ dvr_entry_create_by_event(event_t *e, const char *creator) de->de_start = e->e_start; de->de_stop = e->e_stop; - de->de_start_extra = dvr_extra_time_pre + ch->ch_dvr_extra_time_pre; - de->de_stop_extra = dvr_extra_time_post + ch->ch_dvr_extra_time_post; + if (ch->ch_dvr_extra_time_pre) + de->de_start_extra = ch->ch_dvr_extra_time_pre; + else + de->de_start_extra = dvr_extra_time_pre; + if (ch->ch_dvr_extra_time_post) + de->de_stop_extra = ch->ch_dvr_extra_time_post; + else + de->de_stop_extra = dvr_extra_time_post; de->de_creator = strdup(creator); de->de_title = strdup(e->e_title); de->de_desc = e->e_desc ? strdup(e->e_desc) : NULL;