Bugfix: default file to play on default torrents
This commit is contained in:
parent
4b5b84a0fc
commit
8dfdb34d31
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue