git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
crawler
/
kiss
/
src
/
org
/
wamblee
/
crawler
/
kiss
/
main
/
KissCrawler.java
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 a9a8097a7ae038a92bda4ded8d158592bedcdc6a..969c5b23749e8e500f052308af0ed48a44f09308 100644
(file)
--- a/
crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java
+++ b/
crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java
@@
-65,7
+65,7
@@
public class KissCrawler {
/**
* Default socket timeout to use.
*/
/**
* Default socket timeout to use.
*/
- private static final int SOCKET_TIMEOUT =
2
0000;
+ private static final int SOCKET_TIMEOUT =
1
0000;
/**
* Regular expression for matching time interval strings in the retrieved
/**
* Regular expression for matching time interval strings in the retrieved
@@
-107,7
+107,7
@@
public class KissCrawler {
* In case of problems sending a mail notification.
*/
public KissCrawler(String aCrawlerConfig,
* In case of problems sending a mail notification.
*/
public KissCrawler(String aCrawlerConfig,
- String aProgramConfig) throws IOException, NotificationException {
+ String aProgramConfig) throws IOException, NotificationException
, PageException
{
this(START_URL, SOCKET_TIMEOUT, aCrawlerConfig, aProgramConfig);
}
this(START_URL, SOCKET_TIMEOUT, aCrawlerConfig, aProgramConfig);
}
@@
-130,7
+130,7
@@
public class KissCrawler {
* In case of problems sending a mail notification.
*/
public KissCrawler(String aStartUrl, int aSocketTimeout, String aCrawlerConfig,
* In case of problems sending a mail notification.
*/
public KissCrawler(String aStartUrl, int aSocketTimeout, String aCrawlerConfig,
- String aProgramConfig) throws IOException, NotificationException {
+ String aProgramConfig) throws IOException, NotificationException
, PageException
{
_pattern = Pattern.compile(TIME_REGEX);
_pattern = Pattern.compile(TIME_REGEX);
@@
-162,6
+162,7
@@
public class KissCrawler {
} catch (PageException e) {
report.addMessage("Problem getting TV guide", e);
LOG.info("Problem getting TV guide", e);
} catch (PageException e) {
report.addMessage("Problem getting TV guide", e);
LOG.info("Problem getting TV guide", e);
+ throw e;
}
parser.getNotifier().send(report.asXml());
} finally {
}
parser.getNotifier().send(report.asXml());
} finally {