Refinements

This commit is contained in:
Ben Sarmiento
2023-10-19 23:00:35 +02:00
parent fda45b99ff
commit a65019e202
7 changed files with 149 additions and 126 deletions

View File

@@ -49,8 +49,10 @@ func createSingleTorrentResponse(basePath string, torrents []torrent.Torrent, t
for _, torrent := range torrents {
for _, file := range torrent.SelectedFiles {
if file.Link == "" {
// TODO: trigger a re-add for the file
log.Println("File has no link, skipping", file.Path)
// TODO: trigger a re-add for the file
// It is selected but no link is available
// I think this is handled on the manager side so we just need to refresh
t.RefreshInfo(torrent.ID)
continue
}