From 3c6681724e285e627e440b9972938c0f72051658 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Mon, 31 Aug 2015 00:24:43 +0200 Subject: Switching to mafinstosh/chromecasts --- bin/cmd.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/cmd.js b/bin/cmd.js index 816d94e..1e39300 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -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) { -- cgit v1.2.3