mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
update to master
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user