Stop IDs are now used by the applet instead of stop names, if available. The data engine distinguishes between names and IDs, scripts know whether or not an ID was given and can use different URLs then. For providers with slow web servers the timeouts were fixed. A global timeout of 60 seconds is now used for script execution and asynchronous network requests (synchronous requests are counted as script execution time). Previously there was a global ~10 seconds timeout, making the default timeout for network requests of 30 seconds senseless.
Getting additional data for multiple timetable items at once now works much faster, because all requests get started together, not one after the other.
Besides fixing bugs I did some visual polishing of the applet. All route items now use the same angle for the stop names. The halo drawn behind route stop names is no longer clipped and properly fades out. Removing of city names from route stop names is now also done automatically if the route data was received as additional data. There's now also some more space for the route item.
See the difference:
|Applet in 0.11 alpha 2|
|Applet in 0.11 beta|
The applet now also shows a link to an HTML version of the route document for HAFAS providers. Links found in JourneyNews strings can now be clicked in the applet to open them in a browser. If there was an error while trying to get the additional data the applet will show it:
|Errors while getting additional data are now shown in the applet|
A busy widget gets shown while route data gets requested as additional data.
Another new thing is using snap scrolling from Plasma::ScrollWidget to always stop (kinetic) scrolling at the top of departure items. When expanding a departure item, it is tried to make it completely visible in it's expanded state. And the applet will now only allow one item at a time to be expanded (could be made configurable quite easily, but currently it is not).