From 8742c91f9fe8a5584dc018bc18eb53e4b2f397a5 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 30 Oct 2023 07:00:38 +0200 Subject: [PATCH] fix poster sub-directories initiation #18 --- src/Service/TorrentService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index 90ea870..1424848 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -293,7 +293,7 @@ class TorrentService public function getStorageFilepathByTorrentPosterId(int $torrentPosterId): string { return sprintf( - '%s/var/posters/%s', + '%s/var/posters/%s.original', $this->kernelInterface->getProjectDir(), implode('/', str_split($torrentPosterId)) ); @@ -302,7 +302,7 @@ class TorrentService public function getStorageFilepathByTorrentId(int $torrentId): string { return sprintf( - '%s/var/torrents/%s.torrent', // @TODO remove extension as not required in background storage + '%s/var/torrents/%s.torrent', $this->kernelInterface->getProjectDir(), implode('/', str_split($torrentId)) );