mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Normalizing announce-list (#337)
* Normalizing announce-list * Update CHANGELOG.md
This commit is contained in:
parent
8d21c37608
commit
afceb6327f
@ -6,6 +6,7 @@
|
|||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
- Release v2.1.5-2024.05-beta1 🎉
|
- Release v2.1.5-2024.05-beta1 🎉
|
||||||
|
- Normalizing announce-list [\#337](https://github.com/torrentpier/torrentpier-lts/pull/337) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Fixed announcer-list issue [\#335](https://github.com/torrentpier/torrentpier-lts/pull/335), [\#336](https://github.com/torrentpier/torrentpier-lts/pull/336) ([belomaxorka](https://github.com/belomaxorka))
|
- Fixed announcer-list issue [\#335](https://github.com/torrentpier/torrentpier-lts/pull/335), [\#336](https://github.com/torrentpier/torrentpier-lts/pull/336) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Some other changes / improvements
|
- Some other changes / improvements
|
||||||
|
|
||||||
|
@ -545,11 +545,17 @@ function send_torrent_with_passkey ($filename)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove announce-list if empty
|
// Preparing announce-list
|
||||||
if (empty($tor['announce-list']))
|
if (empty($tor['announce-list']))
|
||||||
{
|
{
|
||||||
|
// Remove announce-list if empty
|
||||||
unset($tor['announce-list']);
|
unset($tor['announce-list']);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Normalizing announce-list
|
||||||
|
$tor['announce-list'] = array_unique($tor['announce-list'], SORT_REGULAR);
|
||||||
|
}
|
||||||
|
|
||||||
// Add publisher & topic url
|
// Add publisher & topic url
|
||||||
$publisher_name = $bb_cfg['server_name'];
|
$publisher_name = $bb_cfg['server_name'];
|
||||||
|
Loading…
Reference in New Issue
Block a user