From b39aa82d5e8d712722268bd613a93109a39a3136 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Fri, 20 Jan 2012 21:18:25 +0000 Subject: [PATCH] Add manual series output dir mapping support --- source/lib/DownloadDispatcher/Source/Plugin/TV.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php b/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php index 2ee227d..deb5708 100644 --- a/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php +++ b/source/lib/DownloadDispatcher/Source/Plugin/TV.class.php @@ -122,6 +122,9 @@ class DownloadDispatcher_Source_Plugin_TV extends DownloadDispatcher_Source_Plug $normalised_series = $this->normalise($series_name); $this->output_dir_cache[$normalised_series] = $series_name; } + + // Post-process in any manual directory mappings + $this->output_dir_cache = array_merge($this->output_dir_cache, $this->config->get('sources.TV.output_series_mappings'), array()); } protected function normalise($name) {