diff --git a/bin/cronTask.sh.sample b/bin/cronTask.sh.sample index 9d92fa1..3b59ccf 100644 --- a/bin/cronTask.sh.sample +++ b/bin/cronTask.sh.sample @@ -26,7 +26,7 @@ do then rm $file sleep 1 - mv $urlHash* $finalDest$destination + mv $urlHash* $destination fi done < $file fi diff --git a/index.php b/index.php index 77a74b9..23741e3 100644 --- a/index.php +++ b/index.php @@ -239,7 +239,7 @@ function importDir($bc, $fullListDir, $fullListFile) { 'uploadDateSort' => $value['uploadDateSort'] ); $url = escapeshellcmd($value['url']); - $data = $key.' '.$url.' '.$_SERVER['DOCUMENT_ROOT'].'/'.$GLOBALS['config']['VIDEODIR'].'/'.$path.$file['hash']."\n"; + $data = $key.' '.$url.' '.$_SERVER['DOCUMENT_ROOT'].'/'.$GLOBALS['config']['VIDEODIR'].'/'.$path.$file['hash'].'/'."\n"; file_put_contents($GLOBALS['config']['TMPDIR'].'/'.$key.'.hash', $data); } file_put_contents($GLOBALS['config']['LISTFILE'], ""); @@ -285,9 +285,9 @@ function n_print($data, $name = '') {