Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim <wim@sitebase.be>2016-02-06 19:26:29 +0300
committerWim <wim@sitebase.be>2016-02-06 19:26:29 +0300
commit88243587d326869740acaa19346b074fbba7aef8 (patch)
tree999d726a6891d142bc4521472e045e6a7232a017
parent76a4d1defd525d5f69a63af873c2a9a85886c30a (diff)
chromecast torrent title
attach the torrent name so chromecast shows the name of the torrent file on the preload screen
-rwxr-xr-xbin/cmd.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index a4ae8ed..b40574f 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -454,7 +454,9 @@ function runDownload (torrentId) {
if (argv.chromecast) {
var chromecasts = require('chromecasts')()
chromecasts.on('update', function (player) {
- player.play(href)
+ player.play(href, {
+ title: torrent.name
+ })
})
}