Skip to content

Fixed and improved parser for Trenitalia

Roberto Guido requested to merge madbob/kitinerary:fix_trenitalia into master

Since August 2023 Trenitalia changed the booking mode: now no barcode is provided along the ticket itself, but a link to perform an "online check-in" before departure.

This PR includes:

  • a fix in PDF parsing, no longer dependant on the presence of the barcode (which is no longer present at all; probably the relative function can be totally suppressed)
  • some fix in iCal parsing (as Trenitalia operates in Italy, labels should be also in Italian ;-) )
  • a brand new HTML parser for the email body, which is the only source for the check-in link (very important to be extracted, as it is a mandatory procedure). Note: I only have samples in Italian, so only Italian labels are managed, I'm not sure the email body includes the same labels of the PDF

Merge request reports

Loading