mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-03-10 04:21:06 +00:00
add APP_TORRENT_WANTED_FTP_FOLDER setting #27
This commit is contained in:
parent
78a7134ced
commit
5f4a14ebe2
1
.env
1
.env
@ -88,4 +88,5 @@ APP_TORRENT_FILE_SIZE_MAX=1024000
|
|||||||
|
|
||||||
# Store wanted torrent files in /app/var/ftp by /app/crontab/torrent/scrape/{key}
|
# Store wanted torrent files in /app/var/ftp by /app/crontab/torrent/scrape/{key}
|
||||||
APP_TORRENT_WANTED_FTP_ENABLED=1
|
APP_TORRENT_WANTED_FTP_ENABLED=1
|
||||||
|
APP_TORRENT_WANTED_FTP_FOLDER=/yggtracker
|
||||||
APP_TORRENT_WANTED_FTP_APPROVED_ONLY=1
|
APP_TORRENT_WANTED_FTP_APPROVED_ONLY=1
|
@ -19,6 +19,7 @@ parameters:
|
|||||||
app.yggdrasil: '%env(APP_YGGDRASIL)%'
|
app.yggdrasil: '%env(APP_YGGDRASIL)%'
|
||||||
app.torrent.size.max: '%env(APP_TORRENT_FILE_SIZE_MAX)%'
|
app.torrent.size.max: '%env(APP_TORRENT_FILE_SIZE_MAX)%'
|
||||||
app.torrent.wanted.ftp.enabled: '%env(APP_TORRENT_WANTED_FTP_ENABLED)%'
|
app.torrent.wanted.ftp.enabled: '%env(APP_TORRENT_WANTED_FTP_ENABLED)%'
|
||||||
|
app.torrent.wanted.ftp.folder: '%env(APP_TORRENT_WANTED_FTP_FOLDER)%'
|
||||||
app.torrent.wanted.ftp.approved: '%env(APP_TORRENT_WANTED_FTP_APPROVED_ONLY)%'
|
app.torrent.wanted.ftp.approved: '%env(APP_TORRENT_WANTED_FTP_APPROVED_ONLY)%'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -2212,7 +2212,8 @@ class TorrentController extends AbstractController
|
|||||||
$torrentService->copyToFtpStorage(
|
$torrentService->copyToFtpStorage(
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
sprintf(
|
sprintf(
|
||||||
'/torrents/wanted/all/wanted#%s.%s.torrent',
|
'%s/torrents/wanted/all/wanted#%s.%s.torrent',
|
||||||
|
$this->getParameter('app.torrent.wanted.ftp.folder'),
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
$file->getName()
|
$file->getName()
|
||||||
)
|
)
|
||||||
@ -2224,7 +2225,8 @@ class TorrentController extends AbstractController
|
|||||||
$torrentService->copyToFtpStorage(
|
$torrentService->copyToFtpStorage(
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
sprintf(
|
sprintf(
|
||||||
'/torrents/wanted/sensitive/yes/wanted#%s.%s.torrent',
|
'%s/torrents/wanted/sensitive/yes/wanted#%s.%s.torrent',
|
||||||
|
$this->getParameter('app.torrent.wanted.ftp.folder'),
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
$file->getName()
|
$file->getName()
|
||||||
)
|
)
|
||||||
@ -2236,7 +2238,8 @@ class TorrentController extends AbstractController
|
|||||||
$torrentService->copyToFtpStorage(
|
$torrentService->copyToFtpStorage(
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
sprintf(
|
sprintf(
|
||||||
'/torrents/wanted/sensitive/no/wanted#%s.%s.torrent',
|
'%s/torrents/wanted/sensitive/no/wanted#%s.%s.torrent',
|
||||||
|
$this->getParameter('app.torrent.wanted.ftp.folder'),
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
$file->getName()
|
$file->getName()
|
||||||
)
|
)
|
||||||
@ -2249,7 +2252,8 @@ class TorrentController extends AbstractController
|
|||||||
$torrentService->copyToFtpStorage(
|
$torrentService->copyToFtpStorage(
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
sprintf(
|
sprintf(
|
||||||
'/torrents/wanted/locale/%s/wanted#%s.%s.torrent',
|
'%s/torrents/wanted/locale/%s/wanted#%s.%s.torrent',
|
||||||
|
$this->getParameter('app.torrent.wanted.ftp.folder'),
|
||||||
$locale,
|
$locale,
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
$file->getName()
|
$file->getName()
|
||||||
@ -2265,7 +2269,8 @@ class TorrentController extends AbstractController
|
|||||||
/// All
|
/// All
|
||||||
$torrentService->removeFromFtpStorage(
|
$torrentService->removeFromFtpStorage(
|
||||||
sprintf(
|
sprintf(
|
||||||
'/torrents/wanted/all/wanted#%s.%s.torrent',
|
'%s/torrents/wanted/all/wanted#%s.%s.torrent',
|
||||||
|
$this->getParameter('app.torrent.wanted.ftp.folder'),
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
$file->getName()
|
$file->getName()
|
||||||
)
|
)
|
||||||
@ -2274,7 +2279,8 @@ class TorrentController extends AbstractController
|
|||||||
/// Sensitive
|
/// Sensitive
|
||||||
$torrentService->removeFromFtpStorage(
|
$torrentService->removeFromFtpStorage(
|
||||||
sprintf(
|
sprintf(
|
||||||
'/torrents/wanted/sensitive/yes/wanted#%s.%s.torrent',
|
'%s/torrents/wanted/sensitive/yes/wanted#%s.%s.torrent',
|
||||||
|
$this->getParameter('app.torrent.wanted.ftp.folder'),
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
$file->getName()
|
$file->getName()
|
||||||
)
|
)
|
||||||
@ -2282,7 +2288,8 @@ class TorrentController extends AbstractController
|
|||||||
|
|
||||||
$torrentService->removeFromFtpStorage(
|
$torrentService->removeFromFtpStorage(
|
||||||
sprintf(
|
sprintf(
|
||||||
'/torrents/wanted/sensitive/no/wanted#%s.%s.torrent',
|
'%s/torrents/wanted/sensitive/no/wanted#%s.%s.torrent',
|
||||||
|
$this->getParameter('app.torrent.wanted.ftp.folder'),
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
$file->getName()
|
$file->getName()
|
||||||
)
|
)
|
||||||
@ -2293,7 +2300,8 @@ class TorrentController extends AbstractController
|
|||||||
{
|
{
|
||||||
$torrentService->removeFromFtpStorage(
|
$torrentService->removeFromFtpStorage(
|
||||||
sprintf(
|
sprintf(
|
||||||
'/torrents/wanted/locale/%s/wanted#%s.%s.torrent',
|
'%s/torrents/wanted/locale/%s/wanted#%s.%s.torrent',
|
||||||
|
$this->getParameter('app.torrent.wanted.ftp.folder'),
|
||||||
$locale,
|
$locale,
|
||||||
$torrent->getId(),
|
$torrent->getId(),
|
||||||
$file->getName()
|
$file->getName()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user