mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 04:19:51 +00:00
fixed markup in positions
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@133 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
65f3957f34
commit
f266d841a4
2 changed files with 50 additions and 3 deletions
|
@ -223,7 +223,7 @@ public class SbbProvider implements NetworkProvider
|
|||
+ "([^\n<]*?)<.*?" // departure
|
||||
+ "<td headers=\"date-\\d+\"[^>]*>\n(?:.., (\\d{2}\\.\\d{2}\\.\\d{2})\n)?</td>.*?" // departureDate
|
||||
+ "<td headers=\"time-\\d+\"[^>]*>(?:(\\d{2}:\\d{2})| )</td>.*?" // departureTime
|
||||
+ "<td headers=\"platform-\\d+\"[^>]*>\\s*(.+?)?\\s*</td>.*?" // departurePosition
|
||||
+ "<td headers=\"platform-\\d+\"[^>]*>\n(?:<span[^>]*>\n)?(.+?)?\\s*(?:<img[^>]*>\n</span>\n)?</td>.*?" // departurePosition
|
||||
+ "<img src=\"/img/2/products/(\\w+?)_pic.gif\".*?" // lineType
|
||||
+ "(?:<a href=\"http://fahrplan\\.sbb\\.ch/bin/traininfo\\.exe/dn.*?>\\s*(.*?)\\s*</a>|" // line
|
||||
+ "\n(\\d+) Min\\.).*?" // min
|
||||
|
@ -232,7 +232,7 @@ public class SbbProvider implements NetworkProvider
|
|||
+ "([^\n<]*?)<.*?" // arrival
|
||||
+ "<td headers=\"date-\\d+\"[^>]*>\n(?:.., (\\d{2}\\.\\d{2}\\.\\d{2})\n)?</td>.*?" // arrivalDate
|
||||
+ "<td headers=\"time-\\d+\"[^>]*>(?:(\\d{2}:\\d{2})| )</td>.*?" // arrivalTime
|
||||
+ "<td headers=\"platform-\\d+\"[^>]*>\\s*(.+?)?\\s*</td>.*?" // arrivalPosition
|
||||
+ "<td headers=\"platform-\\d+\"[^>]*>\n(?:<span[^>]*>\n)?(.+?)?\\s*(?:<img[^>]*>\n</span>\n)?</td>.*?" // arrivalPosition
|
||||
, Pattern.DOTALL);
|
||||
|
||||
private QueryConnectionsResult queryConnections(final String uri, final CharSequence page) throws IOException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue