Use fully qualified path to tvrenamer (works when run from any working directory)

This commit is contained in:
2013-10-10 20:23:45 +01:00
parent 5704112833
commit 32f144d0fa

View File

@@ -300,10 +300,9 @@ class DownloadDispatcher_Source_Plugin_TV extends DownloadDispatcher_Source_Plug
} }
protected function renameOutput($dir) { protected function renameOutput($dir) {
$cwd = getcwd(); $lib3rdparty = DownloadDispatcher_Lib . '../3rdparty/';
$command = <<<EOSH $command = <<<EOSH
{$cwd}/3rdparty/tvrenamer/tvrenamer.pl \ {$lib3rdparty}tvrenamer/tvrenamer.pl \
--include_series \ --include_series \
--nogroup \ --nogroup \
--pad=2 \ --pad=2 \