X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=crawler%2Fkiss%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2Fkiss%2Fmain%2FProgramActionExecutor.java;h=27297a6f0d2c625c9383bf069f81821a60817819;hb=01c0abdc7d3339b36216665ff70c99ba3e50c180;hp=3ef511cffe4ce9c8b36c445d163e12c57dd7886e;hpb=8c5698be83dcb9542b3ae3efd4826020bcc56367;p=utils diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java index 3ef511cf..27297a6f 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/ProgramActionExecutor.java @@ -99,50 +99,11 @@ public class ProgramActionExecutor { } } - /** - * Gets the report describing what was done. - * @return Report. - */ - public String getReport() { - StringBuffer msg = new StringBuffer("Summary of KiSS crawler: \n\n\n"); - - boolean printed = false; - - for (RecordingResult result : RecordingResult.values()) { - if (_recordings.get(result).size() > 0) { - 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"); - } - - return msg.toString(); - } - /** * Get report as XML. * @return XML report */ - public Element getXmlReport() { + public Element getReport() { DocumentFactory factory = DocumentFactory.getInstance(); Element report = factory.createElement("report");