Add VidHub endpoints
This commit is contained in:
@@ -140,8 +140,10 @@ func (dl *Downloader) DownloadFile(
|
||||
}
|
||||
}
|
||||
if cfg.ShouldServeFromRclone() {
|
||||
// log.Debugf("Redirecting to %s", unrestrict.Download)
|
||||
redirect(resp, req, unrestrict.Download)
|
||||
} else {
|
||||
// log.Debugf("Streaming %s", unrestrict.Download)
|
||||
dl.streamFileToResponse(torrent, file, unrestrict, resp, req, torMgr, cfg, log)
|
||||
}
|
||||
}
|
||||
@@ -156,8 +158,10 @@ func (dl *Downloader) DownloadLink(
|
||||
log *logutil.Logger,
|
||||
) {
|
||||
if cfg.ShouldServeFromRclone() {
|
||||
// log.Debugf("Redirecting to %s", unrestrict.Download)
|
||||
redirect(resp, req, unrestrict.Download)
|
||||
} else {
|
||||
log.Debugf("Streaming %s", unrestrict.Download)
|
||||
dl.streamFileToResponse(nil, nil, unrestrict, resp, req, torMgr, cfg, log)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user