Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Quick fix for Tokyo wait times
diff --git a/lib/disneytokyo/index.js b/lib/disneytokyo/index.js
index 6a6e26a..0c95059 100644
--- a/lib/disneytokyo/index.js
+++ b/lib/disneytokyo/index.js
@@ -64,7 +64,7 @@ class DisneyTokyoPark extends Park {
var rideObject = this.GetRideObject({
id: ride.ID,
- name: rideData[ride.ID]
+ name: ride.Name
});
if (rideObject) {
@@ -131,8 +131,9 @@ class DisneyTokyoPark extends Park {
const ride = {
ID: Number(data[rideIDX].FacilityID),
WaitTime: rideStatus,
- FastPass: (data[rideIDX].FsStatus && data[rideIDX].FsStatusflg) ? true : false // does ride support FastPass? (and does it have any left?)
+ FastPass: (data[rideIDX].FsStatus && data[rideIDX].FsStatusflg) ? true : false, // does ride support FastPass? (and does it have any left?)
// TODO: separate "has fastpass" and "any fastpass left?"
+ Name: data[rideIDX].FacilityKanaName,
};
// process any found fastpass return times
@@ -296,6 +297,7 @@ class DisneyTokyoPark extends Park {
* @returns {Promise<Object>} `rideID` to English names
*/
GetRideNames() {
+ return Promise.resolve({});
return this.Cache.Wrap("ridenames", function() {
return new Promise(function(resolve, reject) {
// fetch ride names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.