Clean up addSubtitles (#535)

* Fix comments from #529

* Don't unlink deselected files

  I still want to do that eventually, but needs to be supported in WebTorrent

  See https://github.com/feross/webtorrent/issues/806
This commit is contained in:
DC
2016-05-18 02:07:24 -07:00
parent 7c6b7e4a6d
commit 7bd30f8a16
3 changed files with 9 additions and 12 deletions

View File

@@ -349,10 +349,6 @@ function selectFiles (torrentOrInfoHash, selections) {
} else {
console.log('deselecting file ' + i + ' of torrent ' + torrent.name)
file.deselect()
// If we deselected a file, try to nuke it to save disk space
var filePath = path.join(torrent.path, file.path)
fs.unlink(filePath) // Ignore errors for now
}
}
}