From 971adcdbf16b4b0b836a64551a4fec43a00c119b Mon Sep 17 00:00:00 2001 From: dabund24 Date: Fri, 7 Feb 2025 16:30:39 +0100 Subject: [PATCH] un-break parsing of remarks --- parse/arrival-or-departure.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse/arrival-or-departure.js b/parse/arrival-or-departure.js index 51a07acf..875e4042 100644 --- a/parse/arrival-or-departure.js +++ b/parse/arrival-or-departure.js @@ -23,7 +23,7 @@ const createParseArrOrDep = (prefix) => { direction: d.transport?.direction?.stopPlaces?.length > 0 && profile.parseStationName(ctx, d.transport?.direction?.stopPlaces[0].name) || profile.parseStationName(ctx, d.destination?.name || d.richtung || d.terminus) || null, provenance: profile.parseStationName(ctx, d.transport?.origin?.name || d.origin?.name || d.abgangsOrt?.name) || null, line: profile.parseLine(ctx, d) || null, - remarks: profile.parseRemarks(ctx, d), + remarks: [], origin: profile.parseLocation(ctx, d.transport?.origin || d.origin) || null, destination: profile.parseLocation(ctx, d.transport?.destination || d.destination) || null, vias: d.ueber, @@ -37,7 +37,7 @@ const createParseArrOrDep = (prefix) => { Object.defineProperty(res, 'canceled', {value: true}); } - if (opt.remarks) { + if (opt.remarks || opt.meldungen) { res.remarks = profile.parseRemarks(ctx, d); } // TODO opt.stopovers