diff --git a/.gitignore b/.gitignore index 75eb339..5dd6f3e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ app/config.yml composer.lock tags *.swp +vendor \ No newline at end of file diff --git a/README.md b/README.md index bf9a6c1..79d5818 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +**This project is abandoned. T411 is down since 2017-06-26.** + # t411-console t411-console provides a console line tool for searching torrents on the tracker t411.me. diff --git a/src/Api/Client.php b/src/Api/Client.php index eb1a167..f9adfdd 100644 --- a/src/Api/Client.php +++ b/src/Api/Client.php @@ -13,7 +13,7 @@ class Client public function __construct() { - $this->client = new GuzzleClient(['base_url' => 'https://api.t411.ch']); + $this->client = new GuzzleClient(['base_url' => 'https://api.t411.al']); } public function getAuthorization($username, $password) diff --git a/src/Transmission/Command/TransmissionStatsCommand.php b/src/Transmission/Command/TransmissionStatsCommand.php index 51fc68e..5562602 100644 --- a/src/Transmission/Command/TransmissionStatsCommand.php +++ b/src/Transmission/Command/TransmissionStatsCommand.php @@ -8,9 +8,9 @@ use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Command\Command; use Api\ConfigLoader; use Symfony\Component\Console\Input\ArrayInput; +use Vohof\Transmission; use Transmission\Client\GuzzleClient; use Helper\Formater; -use Transmission\Transmission; class TransmissionStatsCommand extends Command { diff --git a/src/Transmission/Transmission.php b/src/Transmission/Transmission.php deleted file mode 100644 index 8c4f871..0000000 --- a/src/Transmission/Transmission.php +++ /dev/null @@ -1,68 +0,0 @@ - - */ -class Transmission extends BaseTransmission -{ - public function __construct(array $config, ClientAbstract $client = null) - { - parent::__construct($config, $client); - - $this->config = $config; - - foreach(array('host', 'endpoint') as $requirement) - { - if ( ! isset($config[$requirement])) - { - throw new \InvalidArgumentException("Missing argument: $requirement"); - } - } - - if (is_null($client)) - { - $options = array(); - - if (isset($config['username']) and isset($config['password'])) - { - $options = array( - 'request.options' => array( - 'auth' => array($config['username'], $config['password']) - ) - ); - } - - $this->client = new GuzzleClient($config['host'], $options); - } - else - { - $this->client = $client; - } - - $this->client->setEndpoint($config['endpoint']); - } - - // public function add($url, $isEncoded = false, $options = array()) - // { - // $options[$isEncoded ? 'metainfo' : 'filename'] = $url; - - // return $this->client->request('torrent-add', $options); - // } - - // public function foo() - // { - // $options = [ - // 'fields' => static::$fields, - // 'ids' => ['all'], - // ]; - // - // return $this->client->request('torrent-get', $options); - // } -} -