mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-05-23 10:05:23 +00:00
完善逻辑
This commit is contained in:
parent
ce65b5d1ff
commit
a328f68178
@ -369,7 +369,9 @@ class TransmissionRPC implements AbstractClientInterface
|
|||||||
*/
|
*/
|
||||||
public function add_metainfo($torrent_metainfo, $save_path = '', $extra_options = array())
|
public function add_metainfo($torrent_metainfo, $save_path = '', $extra_options = array())
|
||||||
{
|
{
|
||||||
$extra_options['download-dir'] = $save_path;
|
if (!empty($save_path)) {
|
||||||
|
$extra_options['download-dir'] = $save_path;
|
||||||
|
}
|
||||||
$extra_options['metainfo'] = base64_encode($torrent_metainfo);
|
$extra_options['metainfo'] = base64_encode($torrent_metainfo);
|
||||||
|
|
||||||
return $this->request("torrent-add", $extra_options);
|
return $this->request("torrent-add", $extra_options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user