From: erik Date: Sat, 20 May 2006 07:47:48 +0000 (+0000) Subject: Added warning if no channels can be found. X-Git-Tag: BEFORE_MAVEN_MIGRATION~74 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=1b449b5589b3ee40489c497d4351877d666b7907;p=utils Added warning if no channels can be found. --- diff --git a/crawler/kiss/conf/kiss/programs.xml b/crawler/kiss/conf/kiss/programs.xml index 6236688c..38fb018d 100644 --- a/crawler/kiss/conf/kiss/programs.xml +++ b/crawler/kiss/conf/kiss/programs.xml @@ -61,6 +61,10 @@ ((dr)|(doct.*)).*who + + little britain + + 9 the.*x.*files @@ -109,7 +113,6 @@ - notify auto wegmisbruikers|(blik.*op.*weg) diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java index b0be9ef6..db787eb6 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java @@ -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 channels = new ArrayList(); for (Action action : actions) { try {