Commit f2f99631 authored by Volker Krause's avatar Volker Krause
Browse files

Extract passenger name for Thalys tickets too

parent bf77c46c
......@@ -41,5 +41,10 @@ function parseReservation(html) {
var tokenElem = html.eval('//table[@class="qrcode"]//img')[0];
var token = tokenElem.attribute("src").match(/barcode\/tAZTEC\/.*\/nBinary\/v(.*)\/barcode.gif/);
res.reservedTicket.ticketToken = "aztecbin:" + token[1];
var passengerElem = html.eval('//table[@class="passengername"]')[0];
var name = passengerElem.recursiveContent.match(/\n(.*)/); = name[1];
return res;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment