Simple string sort on listing torrents
This commit is contained in:
@@ -68,7 +68,10 @@ func NewHTTPClient(token string, maxRetries int, timeoutSecs int, cfg config.Con
|
||||
if cfg.ShouldForceIPv6() {
|
||||
dialer := &net.Dialer{}
|
||||
dialContext := func(ctx context.Context, network, address string) (net.Conn, error) {
|
||||
host, port, _ := net.SplitHostPort(address)
|
||||
host, port, err := net.SplitHostPort(address)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if ipv6Address, ok := client.ipv6.Get(address); ok {
|
||||
return dialer.DialContext(ctx, network, ipv6Address)
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ func (rd *RealDebrid) UnrestrictUntilOk(link string, serveFromRclone bool) *Down
|
||||
if !strings.HasPrefix(link, "http") {
|
||||
return nil
|
||||
}
|
||||
resp, _ := rd.UnrestrictLink(link, serveFromRclone)
|
||||
if resp != nil {
|
||||
return resp
|
||||
resp, err := rd.UnrestrictLink(link, serveFromRclone)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return nil
|
||||
return resp
|
||||
}
|
||||
|
||||
func (rd *RealDebrid) CanFetchFirstByte(url string) bool {
|
||||
|
||||
Reference in New Issue
Block a user