518 |
Element anchorElement = trainTd.getElementsByTag("a").get(0); |
Element anchorElement = trainTd.getElementsByTag("a").get(0); |
519 |
String href = anchorElement.attr("href"); |
String href = anchorElement.attr("href"); |
520 |
|
|
521 |
int pos = href.lastIndexOf('/'); |
int pos = href.lastIndexOf('='); |
522 |
String number = href.substring(pos+1); |
String number = href.substring(pos+1); |
523 |
|
|
524 |
return number; |
return number; |
557 |
private void injectTritinfoData(DepartureBean departureBean, StationEntry station) throws Exception { |
private void injectTritinfoData(DepartureBean departureBean, StationEntry station) throws Exception { |
558 |
String uri = "http://tritinfo.pallas.dk/webtavle?page=stationcontent&staid=" + station.getTritStation(); |
String uri = "http://tritinfo.pallas.dk/webtavle?page=stationcontent&staid=" + station.getTritStation(); |
559 |
logger.fine("URI:" + uri); |
logger.fine("URI:" + uri); |
|
System.out.println("URI:" + uri); |
|
560 |
|
|
561 |
|
|
562 |
JsoupInvocation wrapper = new JsoupInvocation( new URL(uri), settings.getReplyTimeout() ); |
JsoupInvocation wrapper = new JsoupInvocation( new URL(uri), settings.getReplyTimeout() ); |