Set verified links cache time to 3 mins
This commit is contained in:
@@ -378,10 +378,10 @@ func (t *TorrentManager) deleteInfoFile(torrentID string) {
|
||||
|
||||
func (t *TorrentManager) mountNewDownloads() {
|
||||
token := t.Config.GetToken()
|
||||
tokenMap, _ := t.rd.UnrestrictMap.Get(token)
|
||||
unrestrictCache, _ := t.rd.UnrestrictCache.Get(token)
|
||||
|
||||
// clear maps
|
||||
tokenMap.Clear()
|
||||
unrestrictCache.Clear()
|
||||
t.DownloadMap.Clear()
|
||||
|
||||
downloads := t.rd.GetDownloads()
|
||||
@@ -391,7 +391,7 @@ func (t *TorrentManager) mountNewDownloads() {
|
||||
|
||||
if strings.HasPrefix(downloads[i].Link, "https://real-debrid.com/d/") {
|
||||
downloads[i].Link = downloads[i].Link[0:39]
|
||||
tokenMap.Set(downloads[i].Link, &downloads[i])
|
||||
unrestrictCache.Set(downloads[i].Link, &downloads[i])
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user