From 31c75db45eb7fcbad50c63b7a4f98dee40eb9660 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 29 Nov 2020 14:57:24 +0100 Subject: [PATCH] disable subscription API for endpoints that don't support it --- p/cfl/index.js | 1 + p/cmta/index.js | 1 + p/db-busradar-nrw/index.js | 1 + p/db/index.js | 1 + p/hvv/index.js | 1 + p/invg/index.js | 1 + p/mobiliteit-lu/index.js | 1 + p/nahsh/index.js | 1 + p/oebb/index.js | 1 + p/rejseplanen/index.js | 1 + p/rmv/index.js | 1 + p/rsag/index.js | 4 ++++ p/sncb/index.js | 1 + p/vbb/index.js | 1 + p/vmt/index.js | 1 + 15 files changed, 18 insertions(+) diff --git a/p/cfl/index.js b/p/cfl/index.js index 96a3b09ba..1a4e6e1e7 100644 --- a/p/cfl/index.js +++ b/p/cfl/index.js @@ -29,6 +29,7 @@ const cflProfile = { radar: true, // todo: reachableFrom? remarks: false, // seems like ver >= 1.20 is required + subscriptions: false, } module.exports = cflProfile; diff --git a/p/cmta/index.js b/p/cmta/index.js index 27d22cfd8..06f68845f 100644 --- a/p/cmta/index.js +++ b/p/cmta/index.js @@ -29,6 +29,7 @@ const cmtaProfile = { reachableFrom: true, remarks: false, // seems like ver >= 1.20 is required lines: false, // seems like ver >= 1.16 is required + subscriptions: false, } module.exports = cmtaProfile diff --git a/p/db-busradar-nrw/index.js b/p/db-busradar-nrw/index.js index 11ad5b3c4..dac62b7a4 100644 --- a/p/db-busradar-nrw/index.js +++ b/p/db-busradar-nrw/index.js @@ -100,6 +100,7 @@ const dbBusradarNrwProfile = { radar: true, remarks: false, // seems like ver >= 1.20 is required lines: false, // seems like ver >= 1.16 is required + subscriptions: false, } module.exports = dbBusradarNrwProfile diff --git a/p/db/index.js b/p/db/index.js index 83ac7d2f1..24cbaf832 100644 --- a/p/db/index.js +++ b/p/db/index.js @@ -474,6 +474,7 @@ const dbProfile = { reachableFrom: true, remarks: false, // seems like ver >= 1.20 is required lines: false, // seems like ver >= 1.16 is required + subscriptions: false, } module.exports = dbProfile diff --git a/p/hvv/index.js b/p/hvv/index.js index a0ae7129e..5a08abb2e 100644 --- a/p/hvv/index.js +++ b/p/hvv/index.js @@ -30,6 +30,7 @@ const hvvProfile = { reachableFrom: true, remarks: false, // seems like ver >= 1.20 is required lines: false, // fails with `FAIL` "HCI Service: request failed" + subscriptions: false, } module.exports = hvvProfile diff --git a/p/invg/index.js b/p/invg/index.js index 07e250bfd..c3b2a729c 100644 --- a/p/invg/index.js +++ b/p/invg/index.js @@ -34,6 +34,7 @@ const invgProfile = { radar: true, refreshJourney: true, remarks: false, // seems like ver >= 1.20 is required + subscriptions: false, } module.exports = invgProfile diff --git a/p/mobiliteit-lu/index.js b/p/mobiliteit-lu/index.js index c8059b3bd..1204e4909 100644 --- a/p/mobiliteit-lu/index.js +++ b/p/mobiliteit-lu/index.js @@ -27,6 +27,7 @@ const mobiliteitLuProfile = { trip: true, radar: true, reachableFrom: true, + subscriptions: false, // Version 1.25 doesn't seem to support getPasslist & stbFltrEquiv // for departures()/arrivals(). diff --git a/p/nahsh/index.js b/p/nahsh/index.js index 0a292d6b0..65e36dbf7 100644 --- a/p/nahsh/index.js +++ b/p/nahsh/index.js @@ -94,6 +94,7 @@ const nahshProfile = { radar: true, // todo: see #34 reachableFrom: true, remarks: false, // seems like ver >= 1.20 is required + subscriptions: false, } module.exports = nahshProfile diff --git a/p/oebb/index.js b/p/oebb/index.js index 5f6673334..7b5c55816 100644 --- a/p/oebb/index.js +++ b/p/oebb/index.js @@ -75,6 +75,7 @@ const oebbProfile = { radar: true, reachableFrom: true, remarks: false, // seems like ver >= 1.20 is required + subscriptions: false, } module.exports = oebbProfile diff --git a/p/rejseplanen/index.js b/p/rejseplanen/index.js index 348bf1e8e..3634c3b38 100644 --- a/p/rejseplanen/index.js +++ b/p/rejseplanen/index.js @@ -23,6 +23,7 @@ const rejseplanenProfile = { departuresStbFltrEquiv: false, trip: true, radar: true, + subscriptions: false, // fails with "HCI Service: request failed" 🤷‍♂️ } module.exports = rejseplanenProfile; diff --git a/p/rmv/index.js b/p/rmv/index.js index dd0543361..9f66a6240 100644 --- a/p/rmv/index.js +++ b/p/rmv/index.js @@ -25,6 +25,7 @@ const hvvProfile = { refreshJourney: true, reachableFrom: true, remarks: false, // seems like ver >= 1.20 is required + subscriptions: false, // fails with "CGI_NO_SERVER" 🤷‍♂️ } module.exports = hvvProfile diff --git a/p/rsag/index.js b/p/rsag/index.js index 2799e50c1..f336a896e 100644 --- a/p/rsag/index.js +++ b/p/rsag/index.js @@ -28,6 +28,10 @@ const rsagProfile = { refreshJourney: false, departuresGetPasslist: false, departuresStbFltrEquiv: false, + // fails with this 🤷‍♂️: + // Error: Incoming extension is not supported: VBN.2, Valid extensions: [no extension, HCSS.1.11] incoming: + // + subscriptions: false, } module.exports = rsagProfile diff --git a/p/sncb/index.js b/p/sncb/index.js index d0b6193df..63979c8fa 100644 --- a/p/sncb/index.js +++ b/p/sncb/index.js @@ -70,6 +70,7 @@ const sncbProfile = { radar: true, // todo: `reachableFrom: true` fails with `H9240` remarks: false, // seems like ver >= 1.20 is required + subscriptions: false, } module.exports = sncbProfile diff --git a/p/vbb/index.js b/p/vbb/index.js index f90e51e0c..de493f9b1 100644 --- a/p/vbb/index.js +++ b/p/vbb/index.js @@ -124,6 +124,7 @@ const vbbProfile = { radar: true, reachableFrom: true, remarks: false, // seems like ver >= 1.20 is required + subscriptions: false, } module.exports = vbbProfile diff --git a/p/vmt/index.js b/p/vmt/index.js index 1706ad822..5614212d3 100644 --- a/p/vmt/index.js +++ b/p/vmt/index.js @@ -31,6 +31,7 @@ const hvvProfile = { // fails with `CGI_READ_FAILED` // radar: true, remarks: false, // seems like ver >= 1.20 is required + subscriptions: false, } module.exports = hvvProfile