[mythtv-commits] Ticket #9850: Update mythweb to support new recording rule filters

MythTV noreply at mythtv.org
Wed Jun 15 15:40:27 UTC 2011


#9850: Update mythweb to support new recording rule filters
------------------------------+----------------------------
 Reporter:  gigem             |          Owner:  kormoc
     Type:  Developer Task    |         Status:  new
 Priority:  minor             |      Milestone:  unknown
Component:  Plugin - MythWeb  |        Version:  Trunk Head
 Severity:  medium            |     Resolution:
 Keywords:                    |  Ticket locked:  0
------------------------------+----------------------------
Description changed by gigem:

Old description:

> Mythweb needs to allow editing of the record.filter column.
> record.filter is a bit mask where each bit corresponds to a filter.  If
> the bit for a filter is set, the corresponding filter is enabled for the
> recording rule and if the bit is cleared, the filter is disabled.
> Currently, only 12 filters are allowed, corresponding to bits 0-11.  More
> filters might be allowed in the future.
>
> The filters themselves are defined in the recordfilter table.  The
> relevant columns are defined as follows:
>
> recordfilter.filterid: This is the unique identifier for the filter.  It
> is currently restricted to values 0-11.  The corresponding bit in
> record.filter is (1 << recordfilter.filterid).
>
> recordfilter.description: This is a short description of the filter.  It
> should be shown to the user when editing the record.filter bit for the
> filter.
>
> recordfilter.clause: This is the snippet of SQL that is used when the
> filter is enabled.  If this entry is empty, the filter is not available
> for use and the record.filter bit for this filter should not be editable.
>
> recordfilter.newruledefault: This is a flag which determines the initial
> state of the filter for new recording rules.  If this entry is non-zero,
> the record.filter bit for this filter should initially be set, otherwise,
> the bit should initially be cleared.
>
> When creating an override recording rule, the record.filter value of the
> new rule should be set to the same value as the parent rule.  In
> addition, the record.filter value for override recording rules should not
> be editable by the user.

New description:

 Mythweb needs to allow editing of the record.filter column.  record.filter
 is a bit mask where each bit corresponds to a filter.  If the bit for a
 filter is set, the corresponding filter is enabled for the recording rule
 and if the bit is cleared, the filter is disabled.  Currently, only 12
 filters are allowed, corresponding to bits 0-11.  More filters might be
 allowed in the future.

 The filters themselves are defined in the recordfilter table.  The
 relevant columns are defined as follows:

 recordfilter.filterid: This is the unique identifier for the filter.  It
 is currently restricted to values 0-11.  The corresponding bit in
 record.filter is (1 << recordfilter.filterid).

 recordfilter.description: This is a short description of the filter.  It
 should be shown to the user when editing the record.filter bit for the
 filter.

 recordfilter.clause: This is the snippet of SQL that is used when the
 filter is enabled.  If this entry is empty, the filter is not available
 for use and the record.filter bit for this filter should not be editable.

 recordfilter.newruledefault: This is a flag which determines the initial
 state of the filter for new recording rules.  If this entry is non-zero,
 the record.filter bit for this filter should initially be set, otherwise,
 the bit should initially be cleared.

 When creating an override recording rule, the record.filter value of the
 new rule should be set to the same value as the parent rule.  In addition,
 the record.filter value for override recording rules should not be
 editable by the user.

 After support for editing record.filter is completed, the support for the
 "Exclude Repeat Episodes", "Exclude Generic Episodes" and "Exclude Repeat
 and Generic Episodes" options in record.dupin should be removed.

--

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9850#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list