mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
update
This commit is contained in:
@@ -5,8 +5,6 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"server/torr/state"
|
|
||||||
|
|
||||||
"github.com/anacrolix/torrent"
|
"github.com/anacrolix/torrent"
|
||||||
"github.com/anacrolix/torrent/metainfo"
|
"github.com/anacrolix/torrent/metainfo"
|
||||||
)
|
)
|
||||||
@@ -20,8 +18,6 @@ type TorrentDB struct {
|
|||||||
|
|
||||||
Timestamp int64 `json:"timestamp,omitempty"`
|
Timestamp int64 `json:"timestamp,omitempty"`
|
||||||
Size int64 `json:"size,omitempty"`
|
Size int64 `json:"size,omitempty"`
|
||||||
|
|
||||||
Files []state.TorrentFileStat `json:"files,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type File struct {
|
type File struct {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ func AddTorrentDB(torr *Torrent) {
|
|||||||
t.Title = torr.Title
|
t.Title = torr.Title
|
||||||
t.Poster = torr.Poster
|
t.Poster = torr.Poster
|
||||||
t.Timestamp = time.Now().Unix()
|
t.Timestamp = time.Now().Unix()
|
||||||
t.Files = torr.Status().FileStats
|
|
||||||
settings.AddTorrent(t)
|
settings.AddTorrent(t)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user