improved model
This commit is contained in:
parent
a743768661
commit
9e6c4a3313
@ -1,10 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import "git.milar.in/milarin/anilist"
|
|
||||||
|
|
||||||
type ParsedFile struct {
|
type ParsedFile struct {
|
||||||
FileName string
|
FileName string
|
||||||
Anime *anilist.Media
|
|
||||||
Episode int
|
Episode int
|
||||||
Parser *Parser
|
Parser *Parser
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import "git.milar.in/milarin/anilist"
|
|
||||||
|
|
||||||
type ParsedTorrent struct {
|
type ParsedTorrent struct {
|
||||||
Torrent *Torrent
|
Torrent *Torrent
|
||||||
Anime *anilist.Media
|
Name string
|
||||||
Episode int
|
Episode int
|
||||||
Parser *Parser
|
Parser *Parser
|
||||||
}
|
}
|
||||||
|
16
torrent.go
16
torrent.go
@ -3,14 +3,14 @@ package model
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
type Torrent struct {
|
type Torrent struct {
|
||||||
ID TorrentID `json:"id"`
|
ID TorrentID
|
||||||
Title string `json:"title"`
|
Title string
|
||||||
Link string `json:"link"`
|
Link string
|
||||||
Time time.Time `json:"time"`
|
Time time.Time
|
||||||
Seeders int `json:"seeders"`
|
Seeders int
|
||||||
Leechers int `json:"leechers"`
|
Leechers int
|
||||||
Downloads int `json:"downloads"`
|
Downloads int
|
||||||
Trusted bool `json:"trusted"`
|
Trusted bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type TorrentID string
|
type TorrentID string
|
||||||
|
Loading…
Reference in New Issue
Block a user