repair fixes!
This commit is contained in:
@@ -19,9 +19,7 @@ type RealDebrid struct {
|
||||
client *zurghttp.HTTPClient
|
||||
}
|
||||
|
||||
func NewRealDebrid(accessToken string, log *zap.SugaredLogger) *RealDebrid {
|
||||
maxRetries := 10
|
||||
client := zurghttp.NewHTTPClient(accessToken, maxRetries, nil)
|
||||
func NewRealDebrid(accessToken string, client *zurghttp.HTTPClient, log *zap.SugaredLogger) *RealDebrid {
|
||||
return &RealDebrid{
|
||||
log: log,
|
||||
client: client,
|
||||
@@ -177,7 +175,7 @@ func (rd *RealDebrid) SelectTorrentFiles(id string, files string) error {
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
rd.log.Debugf("Started the download for torrent id=%s", len(strings.Split(files, ",")), id)
|
||||
rd.log.Debugf("Selected %d files and started the download for torrent id=%s", len(strings.Split(files, ",")), id)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user