mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-21 20:59:02 +00:00
Empty commit
This commit is contained in:
parent
c166ade5a1
commit
d2d5642c7a
@ -292,14 +292,13 @@ function make_private() {
|
|||||||
unset($this->Val['libtorrent_resume']);
|
unset($this->Val['libtorrent_resume']);
|
||||||
|
|
||||||
//----- End properties that do not affect the infohash
|
//----- End properties that do not affect the infohash
|
||||||
|
|
||||||
if ($this->Val['info']->Val['private']) {
|
if ($this->Val['info']->Val['private']) {
|
||||||
return true; // Torrent is private
|
return true; // Torrent is private
|
||||||
} else {
|
} else {
|
||||||
// Torrent is not private!
|
// Torrent is not private!
|
||||||
// add private tracker flag
|
// add private tracker flag and sort info dictionary
|
||||||
$this->Val['info']->Val['private'] = 1;
|
$this->Val['info']->Val['private'] = 1;
|
||||||
|
ksort($this->Val['info']->Val);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -288,9 +288,9 @@ function make_private() {
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
// Torrent is not private!
|
// Torrent is not private!
|
||||||
// add private tracker flag
|
// add private tracker flag and sort info dictionary
|
||||||
$this->Val['info']->Val['private'] = '[*INT*]1';
|
$this->Val['info']->Val['private'] = '[*INT*]1';
|
||||||
|
ksort($this->Val['info']->Val);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user