diff --git a/p/oebb/index.js b/p/oebb/index.js index 5f667333..f37b9bdd 100644 --- a/p/oebb/index.js +++ b/p/oebb/index.js @@ -10,17 +10,18 @@ const _parseMovement = require('../../parse/movement') const products = require('./products') const transformReqBody = (ctx, body) => { - // todo: necessary headers? body.client = { - type: 'IPA', + type: 'IPH', id: 'OEBB', - v: '6000500', - name: 'oebbIPAD_ADHOC', - os: 'iOS 10.3.3' + v: '6030600', + name: 'oebbPROD-ADHOC', + os: 'iOS 14.3', + } + body.ver = '1.33' + body.auth = { + type: 'AID', + aid: 'OWDL4fE4ixNiPBBm', } - // todo: https://gist.github.com/anonymous/a5fc856bc80ae7364721943243f934f4#file-haf_config_base-properties-L33 shows 1.16 - body.ver = '1.16' - body.auth = {aid: 'OWDL4fE4ixNiPBBm'} body.lang = 'de' return body @@ -71,10 +72,12 @@ const oebbProfile = { parseLocation: parseHook(_parseLocation, fixWeirdPOIs), parseMovement: parseHook(_parseMovement, fixMovement), + departuresGetPasslist: false, + departuresStbFltrEquiv: false, + refreshJourneyUseOutReconL: true, trip: true, radar: true, reachableFrom: true, - remarks: false, // seems like ver >= 1.20 is required } module.exports = oebbProfile diff --git a/test/e2e/oebb.js b/test/e2e/oebb.js index 42a32f4c..1bf80100 100644 --- a/test/e2e/oebb.js +++ b/test/e2e/oebb.js @@ -252,7 +252,6 @@ test('departures at Wien Leibenfrostgasse', async (t) => { const deps = await client.departures(wienLeibenfrostgasse, { duration: 15, when, - stopovers: true }) validate(t, deps, 'departures', 'departures')