(no commit message)
[utils] / crawler / kiss / src / org / wamblee / crawler / kiss / main / ProgramActionExecutor.java
index 3ef511cffe4ce9c8b36c445d163e12c57dd7886e..27297a6f0d2c625c9383bf069f81821a60817819 100644 (file)
@@ -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");