[mythtv] View recording schedules in mythweb sorted in priority
order
marc.aronson at comcast.net
marc.aronson at comcast.net
Sat Jul 9 21:06:27 EDT 2005
I originally posted the message below on the Knoppmyth forum and Cesman suggested that I also post it over here. At a minimum, others may find it useful. Perhaps it makes sense to include as a standard feature in a future release?
Marc
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.
I am providing the changes as diffs relative to the scripts included in R5A16.
The first change is in /usr/share/mythtv/mythweb/includes/sorting.php
diff sorting.php.orig sorting.php
182a183,186
> function by_recpriority(&$a, &$b) {
> if ($a->recpriority == $b->recpriority) return 0;
> return ($a->recpriority < $b->recpriority) ? 1 : -1;
> }
The second change is in /usr/share/mythtv/mythweb/themes/Default/theme.php
diff theme.php.orig theme.php
160c160
< <a href="recording_schedules.php"><?php echo t('Recording Schedules') ?></a>
---
> <a href="recording_schedules.php?sortby=recpriority"><?php echo t('Recording Schedules') ?></a>
root at mythtv:/usr/share/mythtv/mythweb/themes/Default#
The third change is in /usr/share/mythtv/mythweb/includes/recording_schedules.php
diff recording_schedules.php.orig recording_schedules.php
358a359,361
> // Recording Priority
> $str .= "\t<dt>" . t('Rec Priority') . ":</dt>\n";
> $str .= "\t<dd>" . $this->recpriority . "</dd>\n";
The fourth change is in /usr/share/mythtv/mythweb/languages/English.php
diff English.php.orig English.php
52a53
> 'Rec Priority' => '',
root at mythtv:/usr/share/mythtv/mythweb/languages#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20050710/a763367a/attachment.htm
More information about the mythtv-dev
mailing list