un-break parsing of remarks

This commit is contained in:
dabund24 2025-02-07 16:30:39 +01:00
parent 6db7bf69a0
commit 971adcdbf1

View file

@ -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