Add reading torrent list from file cache, add ffprobe check, bring back proxy in config
This commit is contained in:
@@ -24,7 +24,7 @@ type RealDebrid struct {
|
||||
}
|
||||
|
||||
func NewRealDebrid(apiClient, unrestrictClient, downloadClient *zurghttp.HTTPClient, workerPool *ants.Pool, cfg config.ConfigInterface, log *logutil.Logger) *RealDebrid {
|
||||
return &RealDebrid{
|
||||
rd := &RealDebrid{
|
||||
torrentsCache: []Torrent{},
|
||||
apiClient: apiClient,
|
||||
unrestrictClient: unrestrictClient,
|
||||
@@ -33,6 +33,8 @@ func NewRealDebrid(apiClient, unrestrictClient, downloadClient *zurghttp.HTTPCli
|
||||
cfg: cfg,
|
||||
log: log,
|
||||
}
|
||||
rd.readCachedTorrents()
|
||||
return rd
|
||||
}
|
||||
|
||||
// currently unused
|
||||
|
||||
Reference in New Issue
Block a user