changing how the start API command works to start torrents

This commit is contained in:
2018-03-27 15:39:02 -04:00
parent bc612bf5e4
commit 128ec774bd
3 changed files with 31 additions and 18 deletions

View File

@@ -74,7 +74,7 @@ func CopyFile(srcFile string, destFile string) { //TODO move this to our importe
}
//SetFilePriority sets the priorities for all of the files in a torrent
//SetFilePriority sets the priorities for all of the files in all of the torrents
func SetFilePriority(t *torrent.Client, db *storm.DB) {
storedTorrents := Storage.FetchAllStoredTorrents(db)
for _, singleTorrent := range t.Torrents() {