+2010-06-13 Andrew Ruthven
+ Allow skipping idle encoders when showing the encoder status and
+ make that the default. Thanks to Ron Kellam for the suggestion.
2010-04-29 Andrew Ruthven
Handle the case where the disk space units returned from the server
are different. i.e., total is in GB and used is in MB.
$c->{'description'} ||= 0;
$c->{'episode'} ||= 0;
$c->{'encoder_details'} ||= 0;
+$c->{'encoder_skip_idle'} ||= 1;
$c->{'colour'} ||= 0;
#my %display;
# my @email;
'guide-days-warn=i' => \$c->{'guide_days_warn'},
'auto-expire-count=i' => \$c->{'auto_expire_count'},
'recording-in-warn=i' => \$c->{'recording_in_warn'},
+ 'encoder-skip-idle!' => \$c->{'encoder_skip_idle'},
'status!' => \$c->{'display'}{'Status'},
'encoders!' => \$c->{'display'}{'Encoders'},
'^2$' => "${warning}Watching Pre-recorded${normal}",
'^3$' => "${warning}Watching Recording${normal}",
'^4$' => "${warning}Recording${normal}" },
- }
+ },
+ 'filter' => {
+ 'state' => sub { return $c->{'encoder_skip_idle'} && $_[0] == 0 },
+ },
},
# Info about the encoders after TV OSD Declutter (Changeset 20037).
'^4$' => "${warning}Watching Video${normal}",
'^5$' => "${warning}Watching Recording${normal}",
'^6$' => "${warning}Recording${normal}" },
- }
+ },
+ 'filter' => {
+ 'state' => sub { return $c->{'encoder_skip_idle'} && $_[0] == 0 },
+ },
},
# What programs (if any) are being recorded right now?