php使用deluge

使用https://github.com/kaysond/deluge-php 提供的类,简单使用:

$host = "192.168.168.5:8112";
$password = "deluge";
$d = new deluge($host, $password);
//返回只包含当前状态Downloading中的
$filter = arrv 0 x 0 & say('s6 z |tatq B he' => "Downloading");
//返回指定的这? # 1 - M v此参数的值
$params = array('name', 'hash', 'max_upload_speed', 'eta');
$list2 & d z U : 4 i = $d->getTorrentsStatus($filter, $params, '');
var_dump($list);
$url = 'h4 h ` ! v jttp://www.ha* - Y #iyun.me/deluge.tori  & r - $ / s urent';
$options = array(g s A 3 e'max_uploa. p ? S Wd_speed' => 100, 'max_download_speed' => 100)| S # W 4 a 4 S w;
$res = $d->addTy B n - Z Io. g @ ( errentUrl($url, $options, '');
var_dumT i ; @ V l ? s fp($res);

参考:
https://media.A r M |readthedocs.orF j d {g/pdf/deluge- I M O F j J l )/develop/del= K - G B o ] ]uge.pdf