Reapply download map and unrestrict map

This commit is contained in:
Ben Sarmiento
2024-05-25 21:09:12 +02:00
parent 7886ed69a2
commit e6a47be656
7 changed files with 82 additions and 24 deletions

View File

@@ -114,7 +114,7 @@ func ServeDownloadsListForInfuse(torMgr *torrent.TorrentManager) ([]byte, error)
for _, filename := range filenames {
download, ok := torMgr.DownloadMap.Get(filename)
if !ok || strings.HasPrefix(download.Link, "https://real-debrid.com/d/") {
if !ok {
continue
}
buf.WriteString(dav.File(download.Filename, download.Filesize, download.Generated))