-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"delay" not working #11
Comments
I assume something in the HTML code changed, breaking the parser. Are you able to provide a fix? |
so you have to subtract the value of td class "time" and the value of span class "delay". |
the above mentioned span class delay is only available if the current connection actually has a delay. Providing a fix is a little bit time consuming, because you have to wait for a delayed connection to test :( |
Unfortunately i don't have time to take a look at this right now, but im happy to take a pull request. |
Thanks to @JulianKahnert for looking into this and providing a fix. Released on PyPi as version 0.20. |
time: 0:55
arrival: 14:01
delay: 0
next_on: 13:29
ontime: false
icon: mdi:train
price: null
transfers: 1
products: RE,STR
friendly_name: Menden(Rheinl) to Bonn Gronau Olof-Palme-Allee
next: 13:29
departure: 13:06
As you can the the train is not ontime, but the delay is 0.
on the page www.bahn.de a delay of 20 minutes is shown.
The text was updated successfully, but these errors were encountered: