update to master

This commit is contained in:
YouROK
2021-06-08 14:12:32 +03:00
parent 009b51f578
commit 533ab85f9f
89 changed files with 46034 additions and 8804 deletions

View File

@@ -8,11 +8,14 @@ import (
type BTSets struct {
// Cache
CacheSize int64 // in byte, def 200 mb
PreloadBuffer bool
ReaderReadAHead int // in percent, 5%-100%, [...S__X__E...] [S-E] not clean
UseDisk bool
TorrentsSavePath string
CacheSize int64 // in byte, def 200 mb
PreloadBuffer bool
ReaderReadAHead int // in percent, 5%-100%, [...S__X__E...] [S-E] not clean
// Disk
UseDisk bool
TorrentsSavePath string
RemoveCacheOnDrop bool
// Torrent
ForceEncrypt bool
@@ -56,6 +59,11 @@ func SetBTSets(sets *BTSets) {
if sets.ReaderReadAHead > 100 {
sets.ReaderReadAHead = 100
}
if sets.TorrentsSavePath == "" {
sets.UseDisk = false
}
BTsets = sets
buf, err := json.Marshal(BTsets)
if err != nil {