]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Add VVV has public transport option.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 22 May 2022 15:51:06 +0000 (17:51 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 22 May 2022 15:51:06 +0000 (17:51 +0200)
bots/sledrun_wikitext_to_json.py

index 92484fdc80d8a2c4ef0ed6e2550c1837b9e4b78d..132dc2663bf77ff09046ff83bcb6282dadce53d5 100644 (file)
@@ -266,13 +266,13 @@ class SledrunWikiTextToJsonBot(
                         z = lonlat_ele_to_json(opt_lonlat_from_str(za), opt_uint_from_str(zb))
                         if len(z) > 0:
                             ya['position'] = z
-                    elif node.name in ["Fahrplan Abfahrtsmonitor VVT"]:
+                    elif node.name in ["Fahrplan Abfahrtsmonitor VVT", "Fahrplan Abfahrtsmonitor VVV"]:
                         ya['monitor_template'] = template_to_json(node)
-                    elif node.name in ["Fahrplan Hinfahrt VVT"]:
+                    elif node.name in ["Fahrplan Hinfahrt VVT", "Fahrplan Hinfahrt VVV"]:
                         ya['route_arrival_template'] = template_to_json(node)
-                    elif node.name in ["Fahrplan Rückfahrt VVT"]:
+                    elif node.name in ["Fahrplan Rückfahrt VVT", "Fahrplan Rückfahrt VVV"]:
                         ya['route_departure_template'] = template_to_json(node)
-                    elif node.name in ["Fahrplan Linie VVT"]:
+                    elif node.name in ["Fahrplan Linie VVT", "Fahrplan Linie VVV"]:
                         if ya is not None:
                             public_transport_stops.append(ya)
                             ya = None