mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix file info
This commit is contained in:
@@ -272,7 +272,14 @@ func LoadTorrentsDB() ([]*Torrent, error) {
|
||||
if ffdb == nil {
|
||||
return fmt.Errorf("error load torrent files")
|
||||
}
|
||||
tmp := ffdb.Get([]byte("Size"))
|
||||
|
||||
tmp := ffdb.Get([]byte("Id"))
|
||||
if tmp == nil {
|
||||
return fmt.Errorf("error load torrent file")
|
||||
}
|
||||
file.Id = int(b2i(tmp))
|
||||
|
||||
tmp = ffdb.Get([]byte("Size"))
|
||||
if tmp == nil {
|
||||
return fmt.Errorf("error load torrent file")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user