Fixing Queue issues, start/stop torrent issues

This commit is contained in:
2018-09-13 19:34:30 -04:00
parent a5e9b6745f
commit aba7382113
5 changed files with 62 additions and 84 deletions

View File

@@ -77,20 +77,20 @@ type TorrentLocal struct {
DateAdded string
StoragePath string //The absolute value of the path where the torrent will be moved when completed
TempStoragePath string //The absolute path of where the torrent is temporarily stored as it is downloaded
TorrentMoved bool
TorrentMoved bool //If completed has the torrent been moved to the end location
TorrentName string
TorrentStatus string
TorrentUploadLimit bool //if true this torrent will bypass the upload storage limit (effectively unlimited)
MaxConnections int
TorrentStatus string //"Stopped", "Running"
TorrentUploadLimit bool //if true this torrent will bypass the upload storage limit (effectively unlimited)
MaxConnections int //Max connections that the torrent can have to it at one time
TorrentType string //magnet or .torrent file
TorrentFileName string //Should be just the name of the torrent
TorrentFile []byte
Label string
UploadedBytes int64
DownloadedBytes int64
TorrentSize int64 //If we cancel a file change the download size since we won't be downloading that file
TorrentFile []byte //If torrent was from .torrent file, store the entire file for re-adding on restart
Label string //User enterable label to sort torrents by
UploadedBytes int64 //Total amount the client has uploaded on this torrent
DownloadedBytes int64 //Total amount the client has downloaded on this torrent
TorrentSize int64 //If we cancel a file change the download size since we won't be downloading that file
UploadRatio string
TorrentFilePriority []TorrentFilePriority
TorrentFilePriority []TorrentFilePriority //Slice of all the files the torrent contains and the priority of each file
}
//SaveConfig saves the config to the database to compare for changes to settings.toml on restart