Opened 18 years ago

Closed 18 years ago

#1008 closed enhancement (fixed)

Add a new autoexpire method that uses time and priority

Reported by: willu.mailingLists@… Owned by: cpinkham
Priority: minor Milestone: 0.20
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I generally want to expire low priority shows first, but I also want to expire old shows. Rather than choosing between these two criteria, this patch adds a method that uses both criteria to decide what to expire.

It is a simple linear combination. The easiest way to view it is expiring oldest shows first, but giving each show some bonus time based on its priority. The number of days bonus per priority point is adjustable.

This patch as written makes the preference panel it changes overflow slightly. I don't think that this should go into 0.19, and mythui is changing for 0.20, so I didn't worry about this too much at this stage.

Attachments (1)

time-pri-expire.diff (3.7 KB) - added by willu.mailingLists@… 18 years ago.
The patch implementing time/priority autoexpire

Download all attachments as: .zip

Change History (4)

Changed 18 years ago by willu.mailingLists@…

Attachment: time-pri-expire.diff added

The patch implementing time/priority autoexpire

comment:1 Changed 18 years ago by Isaac Richards

Owner: changed from Isaac Richards to cpinkham

comment:2 Changed 18 years ago by danielk

Milestone: 0.20
Version: head

comment:3 Changed 18 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [9038]) Add a new Auto Expire method based on weighted time and priority. This allows you to use a combination of lowest priority and oldest starttime. The actual sort order is (starttime + (recpriority * weight-days)), so for a recording with a a recpriority of 3 with the global weight of 3, the recording would be assumed to be 9 days newer than it actually is to allow other older recordings to be expired first.

Closes #1008 by applying a very slightly modified patch.

Note: See TracTickets for help on using tickets.