mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Properly handle missing covers in check_covers script
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
2017-05-12 DariusIII
|
||||
* Chg: Properly handle missing covers in check_covers script
|
||||
2017-05-11 DariusIII
|
||||
* Chg: Shorten the interval to 5 hours for check_covers script from 2 days
|
||||
* Fix: Properly declare pdo in Tmux class
|
||||
|
||||
@@ -40,7 +40,7 @@ if (isset($argv[1]) && ($argv[1] === 'true' || $argv[1] === 'check')) {
|
||||
echo ColorCLI::warning('Missing cover ' . $nzbpath);
|
||||
if ($argv[1] === 'true') {
|
||||
$cover = $movie->updateMovieInfo($row['imdbid']);
|
||||
if($cover === false) {
|
||||
if($cover === false || !file_exists($nzbpath)) {
|
||||
$pdo->queryExec('UPDATE movieinfo m SET m.cover = 0 WHERE m.imdbid = %d', $row['imdbid']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user