S-Bahn Munich: switch to 1.21 protocol

This commit is contained in:
Jannis R 2020-08-18 02:12:29 +02:00 committed by Jannis Redmann
parent e6f25a6471
commit 68aaad1071
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ const products = require('./products')
const transformReqBody = (ctx, body) => { const transformReqBody = (ctx, body) => {
body.client = {type: 'IPH', id: 'DB-REGIO-MVV', name: 'MuenchenNavigator', v: '5010100'} body.client = {type: 'IPH', id: 'DB-REGIO-MVV', name: 'MuenchenNavigator', v: '5010100'}
body.ext = 'DB.R15.12.a' body.ext = 'DB.R15.12.a'
body.ver = '1.18' body.ver = '1.21'
body.auth = {type: 'AID', aid: 'd491MVVhz9ZZts23'} body.auth = {type: 'AID', aid: 'd491MVVhz9ZZts23'}
return body return body
@ -22,6 +22,8 @@ const sBahnMunichProfile = {
products, products,
departuresGetPasslist: false,
departuresStbFltrEquiv: false,
trip: true, trip: true,
radar: true, radar: true,
refreshJourney: true, refreshJourney: true,

View file

@ -178,7 +178,6 @@ test('departures at Dietlindenstraße', async (t) => {
const dietlindenstr = '624391' const dietlindenstr = '624391'
const departures = await client.departures(dietlindenstr, { const departures = await client.departures(dietlindenstr, {
duration: 10, when, duration: 10, when,
stopovers: true
}) })
await testDepartures({ await testDepartures({
@ -209,7 +208,6 @@ test('departures with station object', async (t) => {
test('arrivals at Karl-Theodor-Straße', async (t) => { test('arrivals at Karl-Theodor-Straße', async (t) => {
const arrivals = await client.arrivals(karlTheodorStr, { const arrivals = await client.arrivals(karlTheodorStr, {
duration: 10, when, duration: 10, when,
stopovers: true
}) })
await testArrivals({ await testArrivals({