add: torrent folder name to files list

This commit is contained in:
Roardom
2023-07-30 03:51:43 +00:00
parent 39be1d1ee8
commit 4c4583bc86
5 changed files with 71 additions and 0 deletions
@@ -141,6 +141,7 @@ class TorrentController extends BaseController
$torrent->info_hash = $infohash;
$torrent->file_name = $fileName;
$torrent->num_file = $meta['count'];
$torrent->folder = Bencode::get_name($decodedTorrent);
$torrent->announce = $decodedTorrent['announce'];
$torrent->size = $meta['size'];
$torrent->nfo = ($request->hasFile('nfo')) ? TorrentTools::getNfo($request->file('nfo')) : '';