Added warning if no channels can be found.
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 20 May 2006 07:47:48 +0000 (07:47 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 20 May 2006 07:47:48 +0000 (07:47 +0000)
crawler/kiss/conf/kiss/programs.xml
crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java

index 6236688cbc2f6d7130efa6b60231b3f76ea3b6d4..38fb018d25986a892b4c22830708ace2a6eb0001 100644 (file)
     <match>((dr)|(doct.*)).*who</match>
   </program>   
 
+  <program>
+    <match>little britain</match>
+  </program>
+
   <program>
     <priority>9</priority>
     <match>the.*x.*files</match>
   </program>
   
   <program>
-    <action>notify</action>
     <category>auto</category>
     <match>wegmisbruikers|(blik.*op.*weg)</match>
   </program>
index b0be9ef6cede2918bbf842ae98617f6a0d87afc5..db787eb6ea095e37e11717f97df91f9e763406aa 100644 (file)
@@ -263,6 +263,10 @@ public class KissCrawler {
     private TVGuide createGuide(Page aPage, Report aReport) {
         LOG.info("Obtaining full TV guide");
         Action[] actions = aPage.getActions();
+        if ( actions.length == 0 ) { 
+            LOG.error("No channels found");
+            aReport.addMessage("No channels found"); 
+        }
         List<Channel> channels = new ArrayList<Channel>();
         for (Action action : actions) {
             try {