Optimize streaming from Real-Debrid
This commit is contained in:
@@ -17,7 +17,6 @@ type ConfigInterface interface {
|
||||
GetDownloadTimeoutSecs() int
|
||||
GetDumpTorrentsEveryMins() int
|
||||
GetHost() string
|
||||
GetNetworkBufferSize() int
|
||||
GetNumberOfHosts() int
|
||||
GetNumberOfWorkers() int
|
||||
GetOnLibraryUpdate() string
|
||||
@@ -56,7 +55,6 @@ type ZurgConfig struct {
|
||||
Host string `yaml:"host" json:"host"`
|
||||
IgnoreRenames bool `yaml:"ignore_renames" json:"ignore_renames"`
|
||||
LogRequests bool `yaml:"log_requests" json:"log_requests"`
|
||||
NetworkBufferSize int `yaml:"network_buffer_size" json:"network_buffer_size"`
|
||||
NumberOfHosts int `yaml:"number_of_hosts" json:"number_of_hosts"`
|
||||
NumOfWorkers int `yaml:"concurrent_workers" json:"concurrent_workers"`
|
||||
OnLibraryUpdate string `yaml:"on_library_update" json:"on_library_update"`
|
||||
@@ -150,13 +148,6 @@ func (z *ZurgConfig) GetOnLibraryUpdate() string {
|
||||
return z.OnLibraryUpdate
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetNetworkBufferSize() int {
|
||||
if z.NetworkBufferSize == 0 {
|
||||
return 32 * 1024 // 32kb
|
||||
}
|
||||
return z.NetworkBufferSize
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) EnableRetainFolderNameExtension() bool {
|
||||
return z.RetainFolderNameExtension
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user