From 255e2a97dd818afe5c0c1641d31ba8dc167337c5 Mon Sep 17 00:00:00 2001 From: "M.Weck" Date: Tue, 18 Feb 2025 01:15:47 +0200 Subject: [PATCH] Added regional station name detection --- server/tx_search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tx_search.js b/server/tx_search.js index 2216684..a4f4e02 100644 --- a/server/tx_search.js +++ b/server/tx_search.js @@ -159,7 +159,7 @@ async function processData(data, piCode, rdsPs) { if (matchingStation) { return { - station: matchingStation.station.replace("R.", "Radio "), + station: detectedByPireg ? matchingStation.station.replace("R.", "Radio ") + ' ' + matchingStation.regname : matchingStation.station.replace("R.", "Radio "), pol: matchingStation.pol.toUpperCase(), erp: matchingStation.erp && matchingStation.erp > 0 ? matchingStation.erp : '?', city: matchingCity.name,