fix(radio): normalize station tags and retain valid mixed rows

This commit is contained in:
Said committed 2026-10-20 00:23:10 +01:00
1 parent de2138e84c
commit 32b0304c2c
9 files changed
+57 -26

No files matched your search

+6 -6
View File
@@ -70,11 +70,6 @@ export function createIngestion({
);
if (!acceptedRows.length)
throw new Error('Radio directory returned no usable stations');
if (acceptedRows.length !== rows.length) {
throw new Error(
'Radio directory response contained malformed stations',
);
}
const acceptedGeneration = body.acceptedGeneration;
if (
acceptedGeneration !== null &&
@@ -147,7 +142,12 @@ export function createIngestion({
}
if (!repeatingAcceptedGeneration) layerState._updatedAt = updatedAt;
}
layerState._degraded = body.degraded;
layerState._rejectedStationCount = Math.min(
1000000,
rows.length - acceptedRows.length,
);
layerState._degraded =
body.degraded || layerState._rejectedStationCount > 0;
layerState._stale = body.stale;
layerState._error = preservingWarmCatalog
? ERROR_REFRESH_DEGRADED