Fixers and repairs
This commit is contained in:
@@ -50,6 +50,10 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user