Updste repair

This commit is contained in:
Mukhtar Akere
2025-06-18 12:44:05 +01:00
parent b2e99585f7
commit c15e9d8f70
5 changed files with 64 additions and 27 deletions

View File

@@ -570,6 +570,10 @@ func (c *Cache) GetTorrentByName(name string) *CachedTorrent {
return nil
}
func (c *Cache) GetTorrentsName() map[string]CachedTorrent {
return c.torrents.getAllByName()
}
func (c *Cache) GetTorrent(torrentId string) *CachedTorrent {
if torrent, ok := c.torrents.getByID(torrentId); ok {
return &torrent