mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-06-13 12:18:56 +00:00
修复转移做种客户端时,支持磁力链接
This commit is contained in:
@ -239,7 +239,7 @@ class iyuuAutoReseed
|
||||
try
|
||||
{
|
||||
$type = self::$links[$rpcKey]['type'];
|
||||
if( (strpos($torrent,'http://')===0) || (strpos($torrent,'https://')===0) ){
|
||||
if( (strpos($torrent,'http://')===0) || (strpos($torrent,'https://')===0) || (strpos($torrent,'magnet:?xt=urn:btih:')===0)){
|
||||
$result = self::$links[$rpcKey]['rpc']->add( $torrent, $save_path, $extra_options ); // 种子URL添加下载任务
|
||||
} else{
|
||||
if ( $type == 'qBittorrent' ) {
|
||||
|
Reference in New Issue
Block a user