mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-20 05:56:10 +05:00
update
This commit is contained in:
@@ -3,6 +3,7 @@ package torr
|
||||
import (
|
||||
"os"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"server/log"
|
||||
sets "server/settings"
|
||||
@@ -57,6 +58,7 @@ func GetTorrent(hashHex string) *Torrent {
|
||||
hash := metainfo.NewHashFromHex(hashHex)
|
||||
tor := bts.GetTorrent(hash)
|
||||
if tor != nil {
|
||||
tor.expiredTime = time.Now().Add(time.Minute)
|
||||
return tor
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user