mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(indexer): panic on size check via api (#239)
* fix(indexer): panic on size check via api * feat(indexer): add mock api
This commit is contained in:
parent
824aecafdf
commit
9e5b7b0aa5
5 changed files with 91 additions and 58 deletions
|
@ -123,6 +123,7 @@ func (t TorrentBasic) ReleaseSizeBytes() uint64 {
|
|||
releaseSizeBytes, err := humanize.ParseBytes(t.Size)
|
||||
if err != nil {
|
||||
// log could not parse into bytes
|
||||
return 0
|
||||
}
|
||||
return releaseSizeBytes
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue