This commit is contained in:
Ben Sarmiento
2024-05-23 19:29:16 +02:00
parent 2a5f12e37f
commit d03b59bb2a
10 changed files with 275 additions and 226 deletions

View File

@@ -50,10 +50,6 @@ type Torrent struct {
Added string `json:"-"`
}
func (i *Torrent) IsDone() bool {
return i.Progress == 100 && len(i.Links) > 0
}
func (i *Torrent) UnmarshalJSON(data []byte) error {
type Alias Torrent
aux := &struct {