feat: should match imdbid if present

This commit is contained in:
Simon Ding
2024-08-12 18:47:38 +08:00
parent 57ec0b9eb9
commit 29383cf75c
2 changed files with 17 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ func (r *Response) ToResults(indexer *db.TorznabInfo) []Result {
Seeders: mustAtoI(item.GetAttr("seeders")),
Peers: mustAtoI(item.GetAttr("peers")),
Category: mustAtoI(item.GetAttr("category")),
ImdbId: item.GetAttr("imdbid"),
DownloadVolumeFactor: tryParseFloat(item.GetAttr("downloadvolumefactor")),
UploadVolumeFactor: tryParseFloat(item.GetAttr("uploadvolumefactor")),
Source: indexer.Name,
@@ -167,4 +168,5 @@ type Result struct {
IndexerId int `json:"indexer_id"`
Priority int `json:"priority"`
IsPrivate bool `json:"is_private"`
ImdbId string `json:"imdb_id"`
}