mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Fixed announcer-list issue (#1132)
* Fixed announcer-list issue * Update CHANGELOG.md
This commit is contained in:
parent
105ea911c9
commit
e1220c1846
2 changed files with 3 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
**Merged pull requests:**
|
||||
|
||||
- Fixed announcer-list issue [\#1129](https://github.com/torrentpier/torrentpier/pull/1129), [\#1130](https://github.com/torrentpier/torrentpier/pull/1130), [\#1131](https://github.com/torrentpier/torrentpier/pull/1131) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Fixed announcer-list issue [\#1129](https://github.com/torrentpier/torrentpier/pull/1129), [\#1130](https://github.com/torrentpier/torrentpier/pull/1130), [\#1131](https://github.com/torrentpier/torrentpier/pull/1131), [\#1132](https://github.com/torrentpier/torrentpier/pull/1132) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Removed client column from bb_bt_tracker table [\#1128](https://github.com/torrentpier/torrentpier/pull/1128) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Removed one-time used variables [\#1120](https://github.com/torrentpier/torrentpier/pull/1120) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Don't create empty announce-list dict, if ann_urls are empty [\#1119](https://github.com/torrentpier/torrentpier/pull/1119) ([kovalensky](https://github.com/kovalensky))
|
||||
|
|
|
@ -555,13 +555,8 @@ class Torrent
|
|||
$tor['announce'] = $announce_url;
|
||||
}
|
||||
|
||||
// Delete all additional urls
|
||||
if ($bb_cfg['bt_del_addit_ann_urls'] || $bb_cfg['bt_disable_dht']) {
|
||||
unset($tor['announce-list']);
|
||||
}
|
||||
|
||||
// Creating announce-list if not exist
|
||||
if (!isset($tor['announce-list']) || !is_array($tor['announce-list'])) {
|
||||
// Creating / cleaning announce-list
|
||||
if (!isset($tor['announce-list']) || !is_array($tor['announce-list']) || $bb_cfg['bt_del_addit_ann_urls'] || $bb_cfg['bt_disable_dht']) {
|
||||
$tor['announce-list'] = [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue