|
|
|
@ -154,7 +154,9 @@ class TorrentService
@@ -154,7 +154,9 @@ class TorrentService
|
|
|
|
|
{ |
|
|
|
|
$keywords = []; |
|
|
|
|
|
|
|
|
|
foreach ($this->readTorrentFileByFilepath($filepath)->getFileList() as $file) |
|
|
|
|
$file = $this->readTorrentFileByFilepath($filepath); |
|
|
|
|
|
|
|
|
|
foreach ($file->getFileList() as $file) |
|
|
|
|
{ |
|
|
|
|
$words = explode( |
|
|
|
|
' ', |
|
|
|
@ -182,6 +184,16 @@ class TorrentService
@@ -182,6 +184,16 @@ class TorrentService
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($hash = $file->getInfoHashV1(false)) |
|
|
|
|
{ |
|
|
|
|
$keywords[] = $hash; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($hash = $file->getInfoHashV2(false)) |
|
|
|
|
{ |
|
|
|
|
$keywords[] = $hash; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$keywords = array_merge($keywords, $words); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|