fix hr display error when not download completed

This commit is contained in:
xiaomlove
2023-09-21 03:23:40 +08:00
parent 36aa10f64f
commit ab517bf412
4 changed files with 9 additions and 5 deletions

View File

@@ -62,6 +62,10 @@ class HitAndRun extends NexusModel
if ($this->status != self::STATUS_INSPECTING) {
return '---';
}
if (!$this->snatch->completedat) {
//not download completed
return '---';
}
$searchBoxId = $this->torrent->basic_category->mode ?? 0;
if ($searchBoxId == 0) {
do_log(sprintf('[INVALID_CATEGORY], Torrent: %s', $this->torrent_id), 'error');