From 8dfdb34d319ad10bbd787fdd935cd0a257e9bae9 Mon Sep 17 00:00:00 2001 From: DC Date: Mon, 23 May 2016 05:42:37 -0700 Subject: [PATCH] Bugfix: default file to play on default torrents --- renderer/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/renderer/index.js b/renderer/index.js index f82dab2a..7561dc42 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -998,6 +998,7 @@ function openPlayer (infoHash, index, cb) { // automatically choose which file in the torrent to play, if necessary if (index === undefined) index = torrentSummary.defaultPlayFileIndex + if (index === undefined) index = pickFileToPlay(torrentSummary.files) if (index === undefined) return cb(new errors.UnplayableError()) // update UI to show pending playback