--- input.php 2009-02-05 12:10:43.000000000 +0100 +++ input.php 2009-02-05 12:09:38.000000000 +0100 @@ -345,24 +345,29 @@ switch ( $_REQUEST["mod"] ) { $dlpath = $_REQUEST["dlpath"]; $dlpath = myrealpath( "{$directory}/{$dlpath}", $config["home_path"], $cwd ); $param = array( $torrent ); if ( $dlpath != "" ) { $param[] = "d.set_directory={$dlpath}"; } if ( isset( $_REQUEST["torrentstart"] ) && $_REQUEST["torrentstart"] == "start" ) { - $param[] = "d.start="; - } - - if ( $_REQUEST["tfmethod"] == "url" || isset( $_REQUEST["keeptorrentfile"] ) && $_REQUEST["keeptorrentfile"] == "on" ) { - $xmlrpc->setrequest( "load_verbose", $param ); + if ( $_REQUEST["tfmethod"] == "url" || isset( $_REQUEST["keeptorrentfile"] ) && $_REQUEST["keeptorrentfile"] == "on" ) { + $xmlrpc->setrequest( "load_start_verbose", $param ); + } else { + $xmlrpc->setrequest( "load_raw_start", $param ); + } } else { - $xmlrpc->setrequest( "load_raw_verbose", $param ); + if ( $_REQUEST["tfmethod"] == "url" || isset( $_REQUEST["keeptorrentfile"] ) && $_REQUEST["keeptorrentfile"] == "on" ) { + $xmlrpc->setrequest( "load_verbose", $param ); + } else { + $xmlrpc->setrequest( "load_raw_verbose", $param ); + } } + $xmlrpc->call(); $_SESSION["rtwi_err"] = "succtorrentload"; header( "location: {$config["index"]}" ); exit; break; }