fix file info

This commit is contained in:
yourok
2020-03-07 21:14:48 +03:00
parent ff9ef811b9
commit 4165fc5b6e

View File

@@ -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")
}