Proper caching
This commit is contained in:
@@ -2,6 +2,7 @@ package dav
|
||||
|
||||
import (
|
||||
"log"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/debridmediamanager.com/zurg/internal/torrent"
|
||||
@@ -23,7 +24,7 @@ func findAllTorrentsWithName(t *torrent.TorrentManager, filename string) []torre
|
||||
|
||||
torrents := t.GetAll()
|
||||
for _, torrent := range torrents {
|
||||
if torrent.Filename == filename {
|
||||
if torrent.Filename == filename || strings.HasPrefix(torrent.Filename, filename) {
|
||||
matchingTorrents = append(matchingTorrents, torrent)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user