[mythtv-commits] Ticket #111: Sort "Recording Schedule" in priority
order
MythTV
mythtv at cvs.mythtv.org
Fri Jul 15 12:52:52 EDT 2005
#111: Sort "Recording Schedule" in priority order
---------------------+------------------------------------------------------
Id: 111 | Status: new
Component: mythweb | Modified: Fri Jul 15 16:52:52 2005
Severity: low | Milestone: unknown
Priority: minor | Version: 0.18.1
Owner: xris | Reporter: marc.aronson at comcast.net
---------------------+------------------------------------------------------
I find the ability to review recording schedules in priority order in the
myth frontend very useful and missed having this capability via mythweb,
so I made a small change to sort by recording priority from mythweb. When
you have made these changes the default sort order for "Recording
Schedules" is by priority. Also, when you "hover" the mouse over the title
the information box that appears now includes the recording priority.
The changes I made are below. All of these diffs are relative to the
Knoppmyth R5A16 release, which I believe is based on Myth 0.18.1.
diff -bu for ./mythweb/includes/recording_schedules.php
{{{
@@ -356,6 +356,9 @@
}
$str .= "</dd>\n";
}
+ // Recording Priority
+ $str .= "\t<dt>" . t('Rec Priority') . ":</dt>\n";
+ $str .= "\t<dd>" . $this->recpriority . "</dd>\n";
// Profile
if (preg_match('/\\S/', $this->profile)) {
$str .= "\t<dt>".t('Profile').":</dt>\n"
}}}
diff -bu ./mythweb/includes/sorting.php
{{{
@@ -180,5 +180,9 @@
return ($a->profile > $b->profile) ? 1 : -1;
}
+ function by_recpriority(&$a, &$b) {
+ if ($a->recpriority == $b->recpriority) return 0;
+ return ($a->recpriority < $b->recpriority) ? 1 : -1;
+ }
?>
}}}
diff -bu for ./mythweb/languages/English.php
{{{
@@ -50,6 +50,7 @@
'Original Airdate' => '',
'Previous recordings' => '',
'Rating' => '',
+ 'Rec Priority' => '',
'Record new and expire old' => '',
'Recorded Programs' => '',
'Recording Group' => '',
}}}
diff -bu for ./mythweb/themes/Default/theme.php
{{{
@@ -157,7 +157,7 @@
|
<a href="schedule_manually.php"><?php echo t('Manually
Schedule') ?></a>
|
- <a href="recording_schedules.php"><?php echo t('Recording
Schedules') ?></a>
+ <a
href="recording_schedules.php?sortby=recpriority"><?php echo t('Recording
Schedules') ?></a>
|
<a href="scheduled_recordings.php"><?php echo
t('Scheduled Recordings') ?></a>
|
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/111>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list