Mount downloads directory

This commit is contained in:
Ben Sarmiento
2024-01-08 22:56:10 +01:00
parent 96e41d6cbc
commit 5a23d0ff7b
6 changed files with 145 additions and 62 deletions

View File

@@ -152,7 +152,7 @@ func (t *TorrentManager) repair(torrent *Torrent) {
unassignedDownloads := make([]*realdebrid.Download, 0)
torrent.UnassignedLinks.Each(func(link string) bool {
unrestrict := t.UnrestrictUntilOk(link)
if unrestrict != nil && unrestrict.Link != "" {
if unrestrict != nil {
// assign to a selected file
assigned := false
torrent.SelectedFiles.IterCb(func(_ string, file *File) {