Mount downloads directory
This commit is contained in:
@@ -2,20 +2,8 @@ package realdebrid
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func (rd *RealDebrid) UnrestrictUntilOk(link string, serveFromRclone bool) *Download {
|
||||
if !strings.HasPrefix(link, "http") {
|
||||
return nil
|
||||
}
|
||||
resp, err := rd.UnrestrictLink(link, serveFromRclone)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return resp
|
||||
}
|
||||
|
||||
func (rd *RealDebrid) CanFetchFirstByte(url string) bool {
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user