Add configs
This commit is contained in:
@@ -266,7 +266,6 @@ func (rd *RealDebrid) GetActiveTorrentCount() (*ActiveTorrentCountResponse, erro
|
||||
}
|
||||
|
||||
func (rd *RealDebrid) UnrestrictLink(link string, checkFirstByte bool) (*Download, error) {
|
||||
fmt.Println("Unrestricting link via api", link)
|
||||
data := url.Values{}
|
||||
data.Set("link", link)
|
||||
|
||||
@@ -304,7 +303,7 @@ func (rd *RealDebrid) UnrestrictLink(link string, checkFirstByte bool) (*Downloa
|
||||
return nil, fmt.Errorf("undecodable response so likely it has expired")
|
||||
}
|
||||
|
||||
if checkFirstByte && !rd.canFetchFirstByte(response.Download) {
|
||||
if checkFirstByte && !rd.CanFetchFirstByte(response.Download) {
|
||||
return nil, fmt.Errorf("can't fetch first byte")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user