Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
as i've detailed in #6, the issue is that ÖBB uses much longer HAFAS IDs that don't share the DB HAFAS format. i've added logic to check if the current ID looks like an ÖBB style ID, and if so, extract the
![Screenshot from 2024-02-21 11-13-36](https://private-user-images.githubusercontent.com/46252311/306635960-df51cbb7-32a1-49ee-890e-d4bb22d30fb9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4OTYyNjMsIm5iZiI6MTczODg5NTk2MywicGF0aCI6Ii80NjI1MjMxMS8zMDY2MzU5NjAtZGY1MWNiYjctMzJhMS00OWVlLTg5MGUtZDRiYjIyZDMwZmI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDAyMzkyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1MWJjNjdiOGZkODczZDI3MWU1ZTVjMWM3YWYwNDBjZjI0NzNlNDY1YTAxMDE5NTExNGFiNTRiMjZmYThkOGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cCUnq8d6WeSAy41X8qk0Ojsv5tSFrCqPdzrnfIXHNeQ)
![Screenshot from 2024-02-21 11-14-33](https://private-user-images.githubusercontent.com/46252311/306635998-e88ba8ec-98f7-4850-811e-c7767efb4944.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4OTYyNjMsIm5iZiI6MTczODg5NTk2MywicGF0aCI6Ii80NjI1MjMxMS8zMDY2MzU5OTgtZTg4YmE4ZWMtOThmNy00ODUwLTgxMWUtYzc3NjdlZmI0OTQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDAyMzkyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVkNmMxMDVkMThmOTI4MDViNmU0ZDliM2UwYzU4ZjNmYjExYWFlZTAyMDE1YzQxODI0ODhiZjFmNWVmNTdhN2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8FlkeYifs3rLwoSt8gaU7tAB6Mpi4PYylPbZ9iqzbGY)
$date_ref
value for cross-midnight correction from the right spot.i haven't tested this late at night yet (not sure if that's even necessary?) but testing with
--date
and--time
seems to confirm that the library can process cross-midnight journeys again:(for debugging i added the date to departure times, this is not part of the patch)