kleiram / transmission-php

PHP Transmission API client
Other
184 stars 62 forks source link

select which files to download #39

Open hosseinalipour opened 9 years ago

hosseinalipour commented 9 years ago

Is there something that we can choose which files needed to be downloaded in a torrent? if not,why? ,I extremely need this feature

kristoftorfs commented 9 years ago

You can make any API call in the spec manually by using the Client class directly.

$transmission = new Transmission\Transmission();
// Make the call manually
$response = $transmission->getClient->call('torrent-add', array(
    'filename' => $filename,
    'files-unwanted' => array(0, 1, 3)
));
// Load the torrent object
$torrent = $transmission->add($filename);