diff --git a/lib/Enzebe.php b/lib/Enzebe.php index 96b00d56d..a89104300 100644 --- a/lib/Enzebe.php +++ b/lib/Enzebe.php @@ -227,12 +227,13 @@ class Enzebe */ private function buildNZBPath($releaseGuid, $createIfNotExist) { - $s = new Sites(); - $this->site = $s->get(); $siteNzbPath = $this->site->nzbpath; + if (substr($siteNzbPath, -1) !== '/') { + $siteNzbPath .= '/'; + } + $nzbPath = ''; - $i = 0; - $nzbPath .= substr($releaseGuid, $i, 1) . '/'; + $nzbPath = $siteNzbPath . $nzbPath; if ($createIfNotExist && !is_dir($nzbPath)) { diff --git a/lib/ProcessAdditional.php b/lib/ProcessAdditional.php index dc7c5f66f..fb3ed501e 100644 --- a/lib/ProcessAdditional.php +++ b/lib/ProcessAdditional.php @@ -27,8 +27,8 @@ require_once("TraktTv.php"); require_once("Film.php"); require_once("TvAnger.php"); require_once("Konsole.php"); -require_once("Enzebe.php"); require_once("functions.php"); +require_once("Enzebe.php"); /**