From f5d8759dfe6ec56ea3467cda692880d9c8fc0ac8 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 15 Oct 2023 03:36:18 +0300 Subject: [PATCH] add filename to keywords index --- src/Service/TorrentService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index 0427730..6c3d2a4 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -189,6 +189,11 @@ class TorrentService $keywords[] = $hash; } + if ($name = $file->getName(false)) + { + $keywords[] = $name; + } + $keywords = array_merge($keywords, $words); } }