Torrent Queuing for Botched torrent (#83)

* Implement a queue for handling failed torrent

* Add checks for getting slots

* Few other cleanups, change some function names
This commit is contained in:
Mukhtar Akere
2025-06-07 17:23:41 +01:00
committed by GitHub
parent 84603b084b
commit 5bf1dab5e6
30 changed files with 556 additions and 239 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ func (f *File) getDownloadByteRange() (*[2]int64, error) {
func (f *File) stream() (*http.Response, error) {
client := sharedClient
_log := f.cache.GetLogger()
_log := f.cache.Logger()
downloadLink, err := f.getDownloadLink()
if err != nil {
+2 -2
View File
@@ -95,8 +95,8 @@ func New() *WebDav {
Handlers: make([]*Handler, 0),
URLBase: urlBase,
}
for name, c := range store.GetStore().GetDebrid().GetCaches() {
h := NewHandler(name, urlBase, c, c.GetLogger())
for name, c := range store.Get().Debrid().Caches() {
h := NewHandler(name, urlBase, c, c.Logger())
w.Handlers = append(w.Handlers, h)
}
return w