diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 45a3ee480..7259e4443 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -597,9 +597,13 @@ class Torrent } } - // Remove announce-list if empty + // Preparing announce-list if (empty($tor['announce-list'])) { + // Remove announce-list if empty unset($tor['announce-list']); + } else { + // Normalizing announce-list + $tor['announce-list'] = array_unique($tor['announce-list'], SORT_REGULAR); } // Add publisher & topic url