Save selected subtitle (#702)

This commit is contained in:
Mathias Rasmussen
2016-07-09 03:26:30 +02:00
committed by DC
parent 1668c4c614
commit c15711aae8
4 changed files with 24 additions and 6 deletions

View File

@@ -224,6 +224,11 @@ function openPlayerFromActiveTorrent (state, torrentSummary, index, timeout, cb)
// if it's video, check for subtitles files that are done downloading
dispatch('checkForSubtitles')
// enable previously selected subtitle track
if (fileSummary.selectedSubtitle) {
dispatch('addSubtitles', [fileSummary.selectedSubtitle], true)
}
ipcRenderer.send('wt-start-server', torrentSummary.infoHash, index)
ipcRenderer.once('wt-server-' + torrentSummary.infoHash, (e, info) => {
clearTimeout(timeout)