mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix whel delete from db and getting torrent
This commit is contained in:
@@ -59,8 +59,9 @@ func GetTorrent(hashHex string) *Torrent {
|
|||||||
return tor
|
return tor
|
||||||
}
|
}
|
||||||
|
|
||||||
tor = GetTorrentDB(hash)
|
tr := GetTorrentDB(hash)
|
||||||
|
if tr != nil {
|
||||||
|
tor = tr
|
||||||
go func() {
|
go func() {
|
||||||
tr, _ := NewTorrent(tor.TorrentSpec, bts)
|
tr, _ := NewTorrent(tor.TorrentSpec, bts)
|
||||||
if tr != nil {
|
if tr != nil {
|
||||||
@@ -71,6 +72,7 @@ func GetTorrent(hashHex string) *Torrent {
|
|||||||
tr.GotInfo()
|
tr.GotInfo()
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
}
|
||||||
return tor
|
return tor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user