Opened 12 years ago

Closed 12 years ago

#3439 closed defect (fixed)

"Later" scheduled recordings keeps the backend "busy" so it doesn't go idle

Reported by: anonymous Owned by: paulh
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Mythbackend would not become idle and shutdown until the "time to next recording before shutdown" was set so that it was before the following 1 AM schedules which were not to be recorded. I'm assuming it's the L flag that isn't correctly handled. However when it did shutdown, the wakeup time was set correctly to the next real recording - 15:00 the following afternoon.

Nova - "Pocahontas Revealed" 2 1002 WGBH 09 01:00-02:00 0 0 A L 1/0

Nova - "Pocahontas Revealed" 16 1016 WGBX 09 01:00-02:00 0 0 A L 1/0

The Dead Zone - "Lotto Fever" 35 1035 USA 09 01:00-02:00 0 0 A P 8/0

Attachments (1)

sched.patch (2.0 KB) - added by anonymous 12 years ago.
Scheduler patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by anonymous

This also seems to apply to "R" repeats which are not being recorded, mythbackend should really become idle and shutdown.

Changed 12 years ago by anonymous

Attachment: sched.patch added

Scheduler patch

comment:2 Changed 12 years ago by anonymous

Scheduler patch fixes both detection of user/auto startup and time to next recording. Possibly a way to do this cleaner, but this is "safe" without breaking anything in the scheduler.

comment:3 Changed 12 years ago by paulh

Owner: changed from Isaac Richards to paulh

comment:4 Changed 12 years ago by paulh

Resolution: fixed
Status: newclosed

(In [14325]) Only take into account recordings that WILL be recorded when determining whether we were started automatically or manually.

Similarly when deciding whether it's OK to start the shutdown sequence don't allow recordings that wont be recorded anyway to stop the shutdown.

Fixes #3439.

Note: See TracTickets for help on using tickets.