mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
fix poster sub-directories initiation #18
This commit is contained in:
parent
ed3803df95
commit
8742c91f9f
1 changed files with 2 additions and 2 deletions
|
|
@ -293,7 +293,7 @@ class TorrentService
|
||||||
public function getStorageFilepathByTorrentPosterId(int $torrentPosterId): string
|
public function getStorageFilepathByTorrentPosterId(int $torrentPosterId): string
|
||||||
{
|
{
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'%s/var/posters/%s',
|
'%s/var/posters/%s.original',
|
||||||
$this->kernelInterface->getProjectDir(),
|
$this->kernelInterface->getProjectDir(),
|
||||||
implode('/', str_split($torrentPosterId))
|
implode('/', str_split($torrentPosterId))
|
||||||
);
|
);
|
||||||
|
|
@ -302,7 +302,7 @@ class TorrentService
|
||||||
public function getStorageFilepathByTorrentId(int $torrentId): string
|
public function getStorageFilepathByTorrentId(int $torrentId): string
|
||||||
{
|
{
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'%s/var/torrents/%s.torrent', // @TODO remove extension as not required in background storage
|
'%s/var/torrents/%s.torrent',
|
||||||
$this->kernelInterface->getProjectDir(),
|
$this->kernelInterface->getProjectDir(),
|
||||||
implode('/', str_split($torrentId))
|
implode('/', str_split($torrentId))
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue