From ef035528e7eb50f86ce7620099fc67a85dea5500 Mon Sep 17 00:00:00 2001 From: Manfred Brandl Date: Wed, 22 Jul 2026 08:15:03 +0200 Subject: [PATCH] Exclude routes '096' and 'X96' from processing Add condition to exclude two flixbus-routes from processing. These routes are duplicates and only the daata from the official flixbus eu feed (eu-flixbus) should be use.d --- scripts/at.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/at.lua b/scripts/at.lua index 3262ef86c..773f374bb 100644 --- a/scripts/at.lua +++ b/scripts/at.lua @@ -20,6 +20,12 @@ local route_type_map = { } function process_route(route) + local short = route:get_short_name() + + if short == "096" or short == "X96" then + return false + end + for _,m in ipairs(route_type_map) do if route:get_route_type() == m[1] and route:get_short_name():sub(1, #m[2]) == m[2] then route:set_route_type(m[3])