diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -427,14 +427,10 @@ function runDownload (torrentId) { } if (argv.chromecast) { - var chromecast = require('chromecast-js') - new chromecast.Browser() - .on('deviceOn', function (device) { - device.connect() - device.on('connected', function () { - device.play(href) - }) - }) + var chromecasts = require('chromecasts')() + chromecasts.on('update', function (player) { + player.play(href) + }) } if (argv.xbmc) { |