From 48bfedf6dd0166b3e5cc95b14de0ea01b013f0ea Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sat, 31 Dec 2011 02:25:18 +0000 Subject: [PATCH] Add addiitonal log output and cache completed entries --- source/lib/DownloadDispatcher/Source/Plugin/TV.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php b/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php index b38b126..f07d637 100644 --- a/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php +++ b/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php @@ -61,8 +61,15 @@ class DownloadDispatcher_Source_Plugin_TV extends DownloadDispatcher_Source_Plug if ($this->noDuplicates($full_output_dir, $file)) { if ($this->copyOutput($type, $dir, $file, $full_output_dir)) { $this->renameOutput($full_output_dir); + } else { + DownloadDispatcher_LogEntry::warning($this->log, "Failed to copy '{$file}' to the destination directory."); } + } else { + DownloadDispatcher_LogEntry::info($this->log, "Skipping duplicate file '{$file}'."); } + + // This file has been dealt with, so no need to look at it in subsequent operations + $this->markProcessed($file); } }