[mythtv] View recording schedules in mythweb sorted in priority
order
Chris Petersen
lists at forevermore.net
Wed Jul 13 02:12:22 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?
Please create this as a diff against svn (with `svn diff`, or at LEAST
with `diff -bu`), and if you feel nice, create "patch" ticket at
http://svn.mythtv.org/trac/
sounds like a worthy addition, but I can't read the patch just pasted
into an email like this.
-Chris
> 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#
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
More information about the mythtv-dev
mailing list