adapt to API change

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@738 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-08-02 16:37:05 +00:00
parent 32b3ca46b7
commit 24da6ec2e9

View file

@ -160,7 +160,7 @@ public class ShProvider extends AbstractHafasProvider
private static final Pattern P_DEPARTURES_COARSE = Pattern.compile("<tr class=\"(depboard-\\w*)\">(.*?)</tr>", Pattern.DOTALL); private static final Pattern P_DEPARTURES_COARSE = Pattern.compile("<tr class=\"(depboard-\\w*)\">(.*?)</tr>", Pattern.DOTALL);
private static final Pattern P_DEPARTURES_FINE = Pattern.compile("\n" // private static final Pattern P_DEPARTURES_FINE = Pattern.compile("\n" //
+ "<td class=\"time\">(\\d{1,2}:\\d{2}).*?" // plannedTime + "<td class=\"time\">(\\d{1,2}:\\d{2}).*?" // plannedTime
+ "<img class=\"product\" src=\"/hafas-res/img/products/(\\w+)_pic\\.png\"[^>]*>\\s*([^<]*)<.*?" // type,line + "<img class=\"product\" src=\"/hafas-res/[^\"]*?(\\w+)_pic\\.png\"[^>]*>\\s*([^<]*)<.*?" // type,line
+ "<a href=\"http://nah\\.sh\\.hafas\\.de/bin/stboard\\.exe/dn\\?input=(\\d+)&[^>]*>\n" // destinationId + "<a href=\"http://nah\\.sh\\.hafas\\.de/bin/stboard\\.exe/dn\\?input=(\\d+)&[^>]*>\n" // destinationId
+ "([^\n]*)\n.*?" // destination + "([^\n]*)\n.*?" // destination
+ "(?:<td class=\"center sepline top\">\n(" + ParserUtils.P_PLATFORM + ").*?)?" // position + "(?:<td class=\"center sepline top\">\n(" + ParserUtils.P_PLATFORM + ").*?)?" // position