From b49746a4511df181c02a39f79da47e795901b2ce Mon Sep 17 00:00:00 2001 From: Darko Date: Wed, 7 May 2014 12:23:41 +0200 Subject: [PATCH] Fix for preview creation, was a wrong path. --- lib/Info.php | 2 +- lib/Pprocess.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Info.php b/lib/Info.php index cd7ca5443..a2efae18a 100644 --- a/lib/Info.php +++ b/lib/Info.php @@ -358,7 +358,7 @@ class Info // Remove nfo that we cant fetch after 5 attempts. if ($releaseToWork === '') { - $relres = $this->db->query('SELECT ID FROM releases WHERE nfostatus < -6'); + $relres = $this->db->query('SELECT ID FROM releases WHERE nfostatus < -6 AND releasenfoID = -1'); foreach ($relres as $relrow) { $this->db->exec(sprintf('DELETE FROM releasenfo WHERE nfo IS NULL AND releaseID = %d', $relrow['ID'])); } diff --git a/lib/Pprocess.php b/lib/Pprocess.php index 22fd345f7..6debbef7f 100644 --- a/lib/Pprocess.php +++ b/lib/Pprocess.php @@ -667,7 +667,6 @@ class PProcess //\\ Paths. $this->audSavePath = WWW_DIR . 'covers/audio/'; $this->jpgSavePath = WWW_DIR . 'covers/sample/'; - $this->imgSavePath = WWW_DIR . 'covers/console/'; $this->vidSavePath = WWW_DIR . 'covers/video/'; $this->mainTmpPath = $this->site->tmpunrarpath; $this->tmpPath = $this->mainTmpPath; @@ -1411,7 +1410,7 @@ class PProcess } // If samples exist from previous runs, set flags. - if (file_exists($this->imgSavePath . $rel['guid'] . '_thumb.jpg')) { + if (file_exists($this->releaseImage->imgSavePath . $rel['guid'] . '_thumb.jpg')) { $iSQL = ', haspreview = 1'; } else { $iSQL = ', haspreview = 0';