From a9f1838fd68d9019f309254f8e696853846b9e1a Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Fri, 3 Jan 2025 06:51:16 +0100 Subject: [PATCH] Support new status line format --- scraper/src/Scrapers/Train.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/src/Scrapers/Train.cs b/scraper/src/Scrapers/Train.cs index f3351d7..2a9f527 100644 --- a/scraper/src/Scrapers/Train.cs +++ b/scraper/src/Scrapers/Train.cs @@ -26,7 +26,7 @@ namespace InfoferScraper.Scrapers { private static readonly Regex SlRegex = new( - @"^(?:Fără|([0-9]+)\smin)\s(întârziere|mai\sdevreme)\sla\s(trecerea\sfără\soprire\sprin|sosirea\sîn|plecarea\sdin)\s(.+)\.$"); + @"^(?:Fără|([0-9]+)\smin)\s(întârziere|mai\sdevreme)\sla\s(trecerea\sfără\soprire\sprin|sosirea\sîn|plecarea\sdin)\s(.+)(?:\s\(Raportat\sla\s([0-9]+):([0-9]+)\))?\."); private static readonly Dictionary SlStateMap = new() { { 't', StatusKind.Passing },