castv2-client
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -18,2 +18,4 @@ var util = require('util'); | ||
var status = data.status[0]; | ||
// Sometimes an empty status array can come through; if so don't emit it | ||
if (!status) return; | ||
self.currentSession = status; | ||
@@ -63,2 +65,7 @@ self.emit('status', status); | ||
: []; | ||
data.repeatMode = (typeof options.repeatMode === "string" && | ||
typeof options.repeatMode !== 'undefined') | ||
? options.repeatMode | ||
: "REPEAT_OFF"; | ||
@@ -72,2 +79,5 @@ data.media = media; | ||
} | ||
if(response.type === 'LOAD_CANCELLED') { | ||
return callback(new Error('Load cancelled')); | ||
} | ||
var status = response.status[0]; | ||
@@ -112,2 +122,2 @@ callback(null, status); | ||
module.exports = MediaController; | ||
module.exports = MediaController; |
{ | ||
"name": "castv2-client", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A Chromecast client based on the new (CASTV2) protocol", | ||
@@ -5,0 +5,0 @@ "author": "thibauts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23768
498