- msg.append(result.getDescription() + "\n\n");
- for (Program program : _recordings.get(result)) {
- msg.append(program + "\n\n");
- printed = true;
- }
- }
- }
-
- if ( _interestingShows.size() > 0 ) {
- msg.append("Possibly interesting shows:\n\n");
- for (String category: _interestingShows.keySet()) {
- if ( category.length() > 0 ) {
- msg.append("Category: " + category + "\n\n");
- }
- for (Program program: _interestingShows.get(category)) {
- msg.append(program + "\n\n");
- printed = true;
- }
- }
-
- }
- if (!printed) {
- msg.append("No suitable programs found");
- }
+ Element recordingResult = report.addElement("recorded")
+ .addAttribute("result", result.toString());