diff --git a/Autobrr/Autobrr.php b/Autobrr/Autobrr.php new file mode 100644 index 0000000000..f204fe5e43 --- /dev/null +++ b/Autobrr/Autobrr.php @@ -0,0 +1,38 @@ +jar = new \GuzzleHttp\Cookie\CookieJar; // Uncomment if cookies need to be set + } + + public function test() + { + $test = parent::appTest($this->url('status')); + echo $test->status; + } + + public function livestats() + { + $status = 'inactive'; + $res = parent::execute($this->url('status')); + $details = json_decode($res->getBody()); + + $data = []; + return parent::getLiveStats($status, $data); + } + + public function url($endpoint) + { + $api_url = parent::normaliseurl($this->config->url) . $endpoint; + return $api_url; + } +} diff --git a/Autobrr/app.json b/Autobrr/app.json new file mode 100644 index 0000000000..18c93d8677 --- /dev/null +++ b/Autobrr/app.json @@ -0,0 +1,10 @@ +{ + "appid": "66506eac84c6980a1beccafa10003ec78da7dd17", + "name": "Autobrr", + "website": "HTTPS://autobrr.com", + "license": "Open Public License v1.0", + "description": "autobrr is the modern download automation tool for torrents. With inspiration and ideas from tools like trackarr, autodl-irssi and flexget we built one tool that can do it all, and then some.", + "enhanced": true, + "tile_background": "dark", + "icon": "autobrr.png" +} \ No newline at end of file diff --git a/Autobrr/autobrr.png b/Autobrr/autobrr.png new file mode 100644 index 0000000000..4a2af06d21 Binary files /dev/null and b/Autobrr/autobrr.png differ diff --git a/Autobrr/config.blade.php b/Autobrr/config.blade.php new file mode 100644 index 0000000000..e892e6c0d9 --- /dev/null +++ b/Autobrr/config.blade.php @@ -0,0 +1,19 @@ +

{{ __('app.apps.config') }} ({{ __('app.optional') }}) @include('items.enable')

+
+
+ + {!! Form::text('config[override_url]', null, array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!} +
+
+ + {!! Form::text('config[username]', null, array('placeholder' => __('app.apps.username'), 'data-config' => 'username', 'class' => 'form-control config-item')) !!} +
+
+ + {!! Form::input('password', 'config[password]', '', ['placeholder' => __('app.apps.password'), 'data-config' => 'password', 'class' => 'form-control config-item']) !!} +
+
+ +
+
+ diff --git a/Autobrr/livestats.blade.php b/Autobrr/livestats.blade.php new file mode 100644 index 0000000000..4fa2c8bc4d --- /dev/null +++ b/Autobrr/livestats.blade.php @@ -0,0 +1,10 @@ + \ No newline at end of file