<program>
<action>notify</action>
- <match field="description">((sci-fi)|(science fiction))</match>
+ <match field="description">(sci-fi)|(science fiction)</match>
</program>
+ <program>
+ <action>notify</action>
+ <match>(zembla)|(uur.*wolf)</match>
+ </program>
<program>
<match>star.*gate</match>
// client.getHostConfiguration().setProxy("127.0.0.1", 3128);
Crawler crawler = createCrawler(aCrawlerConfig, os, client);
+ InputStream programConfigFile = new FileInputStream(new File(
+ aProgramConfig));
+ List<ProgramFilter> programFilters = new ProgramConfigurationParser()
+ .parse(programConfigFile);
Page page = getStartPage(aStartUrl, crawler);
TVGuide guide = createGuide(page);
PrintVisitor printer = new PrintVisitor(System.out);
guide.accept(printer);
- InputStream programConfigFile = new FileInputStream(new File(
- aProgramConfig));
- List<ProgramFilter> programFilters = new ProgramConfigurationParser()
- .parse(programConfigFile);
+
recordInterestingShows(programFilters, guide);
} finally {
os.flush();
if ( fieldAttribute != null ) {
fieldName = fieldAttribute.getText();
}
- String pattern = ".*" + patternElem.getText()
- + ".*";
+ String pattern = ".*(" + patternElem.getText()
+ + ").*";
regexConditions.add(new PropertyRegexCondition<Program>(fieldName, pattern, true));
}
Condition<Program> condition = new AndCondition<Program>(regexConditions);