Skip to content

Commit 6fc4828

Browse files
committed
Add an example clause to the Custom Rule editor that shows how to create a rule that re-records HDTV versions of shows that were previously recorded in SDTV.
As mentioned in the example clause title, duplicate matching should be disabled for the custom rule (however, it will only match episodes for which you have recorded an SDTV version and have not yet recorded an HDTV version). The clause works great with "Match an exact title," but can be used with virtually any other clause (or, in theory, alone). You may want to lower the priority of the Re-record in HDTV rules so they don't bump your first-time-recording rules. This change does not attempt to fix the issues with the Custom Rule editor usability (which is still awaiting a multiline edit widget). Thanks to Taco Mel on the mailing lists for coming up with the SQL and to Johnny Walker for creating the patch. git-svn-id: http://svn.mythtv.org/svn/trunk@25056 7dbf422c-18fa-0310-86e9-fd20926502f2
1 parent a05b4bf commit 6fc4828

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mythtv/programs/mythfrontend/customedit.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,16 @@ void CustomEdit::loadClauses()
429429
qVariantFromValue(rule));
430430
*/
431431

432+
rule.title = tr("Re-record SDTV in HDTV (disable duplicate matching)");
433+
rule.subtitle = ", recordedprogram rp1 LEFT OUTER JOIN recordedprogram rp2"
434+
" ON rp1.programid = rp2.programid AND rp2.hdtv = 1";
435+
rule.description = "program.programid = rp1.programid \n"
436+
"AND rp1.hdtv = 0 \n"
437+
"AND program.hdtv = 1 \n"
438+
"AND rp2.starttime IS NULL ";
439+
new MythUIButtonListItem(m_clauseList, rule.title,
440+
qVariantFromValue(rule));
441+
432442
rule.title = tr("Multiple sports teams (complete example)");
433443
rule.subtitle.clear();
434444
rule.description = "program.title = 'NBA Basketball' \n"

0 commit comments

Comments
 (0)