final int maxDays = mSettings.getDays();
for (int days = 0; days < maxDays; days++) {
for (int i = 0; i < channels.length; ++i) {
for (Iterator<Program> iter = devplugin.Plugin.getPluginManager()
.getChannelDayProgram(date, channels[i]); iter.hasNext();) {
final Program prog = iter.next();
String genreField = prog.getTextField(ProgramFieldType.GENRE_TYPE);
if (genreField != null) {
// some programs have buggy fields with brackets
if (genreField.startsWith("(") && genreField.endsWith(")")) {
genreField = genreField.substring(1, genreField.length() - 1);
}