mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Remove remaining nzbstatus checks where not needed
This commit is contained in:
@@ -29,7 +29,7 @@ if (isset($argv[1]) && ($argv[1] === 'true' || $argv[1] === 'check')) {
|
||||
$limit = $argv[2];
|
||||
}
|
||||
$colorCli->header('Scanning for releases missing previews');
|
||||
$res = Release::query()->select('id', 'guid')->where(['nzbstatus' => 1, 'haspreview' => 1])->get()->toArray();
|
||||
$res = Release::query()->select('id', 'guid')->where(['haspreview' => 1])->get()->toArray();
|
||||
foreach ($res as $row) {
|
||||
$nzbpath = $path2preview.$row['guid'].'_thumb.jpg';
|
||||
if (! file_exists($nzbpath)) {
|
||||
|
||||
Reference in New Issue
Block a user