From ca37cdd0009298b677ffbc356741098d609c474d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 2 Sep 2011 19:23:56 +0200 Subject: DeutscheBahn/Result.pm: Add route_timetable accessor --- Changelog | 6 ++++++ lib/Travel/Status/DE/DeutscheBahn.pm | 9 ++++----- lib/Travel/Status/DE/DeutscheBahn/Result.pm | 14 +++++++++++++- t/20-db.t | 18 +++++++++++++++++- 4 files changed, 40 insertions(+), 7 deletions(-) diff --git a/Changelog b/Changelog index 40938e9..b794ad1 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,9 @@ +git HEAD + + * Fix bug when receiving no platform numbers from the DB RIS + * Result: Add route_timetable accessor containing station names and + their corresponding arrival times + Travel::Status::DE::DeutscheBahn 0.05 - Tue Aug 09 2011 [Travel::Status::DE::DeutscheBahn] diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm index 9cda933..46b679e 100644 --- a/lib/Travel/Status/DE/DeutscheBahn.pm +++ b/lib/Travel/Status/DE/DeutscheBahn.pm @@ -117,8 +117,8 @@ sub results { my $xp_info = XML::LibXML::XPathExpression->new('./td[@class="ris"]'); my $re_via = qr{ - ^ \s* (.+?) \s* \n - \d{1,2}:\d{1,2} + ^ \s* (? .+? ) \s* \n + (?