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,18 +59,20 @@ func GetTorrent(hashHex string) *Torrent {
|
|||||||
return tor
|
return tor
|
||||||
}
|
}
|
||||||
|
|
||||||
tor = GetTorrentDB(hash)
|
tr := GetTorrentDB(hash)
|
||||||
|
if tr != nil {
|
||||||
go func() {
|
tor = tr
|
||||||
tr, _ := NewTorrent(tor.TorrentSpec, bts)
|
go func() {
|
||||||
if tr != nil {
|
tr, _ := NewTorrent(tor.TorrentSpec, bts)
|
||||||
tr.Title = tor.Title
|
if tr != nil {
|
||||||
tr.Poster = tor.Poster
|
tr.Title = tor.Title
|
||||||
tr.Size = tor.Size
|
tr.Poster = tor.Poster
|
||||||
tr.Timestamp = tor.Timestamp
|
tr.Size = tor.Size
|
||||||
tr.GotInfo()
|
tr.Timestamp = tor.Timestamp
|
||||||
}
|
tr.GotInfo()
|
||||||
}()
|
}
|
||||||
|
}()
|
||||||
|
}
|
||||||
return tor
|
return tor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user