Birger J. Nordølum
7 years ago
No known key found for this signature in database
GPG Key ID: 1E2DC712B50089CC
2 changed files with
10 additions and
3 deletions
-
app/SupportedApps/Transmission.php
-
resources/views/supportedapps/transmission.blade.php
|
|
@ -158,9 +158,12 @@ class Transmission implements Contracts\Applications, Contracts\Livestats |
|
|
|
|
|
|
|
private function getApiUrl() |
|
|
|
{ |
|
|
|
$url = $this->config->url; |
|
|
|
$config = $this->config; |
|
|
|
$url = $config->url; |
|
|
|
|
|
|
|
$url = rtrim($url, '/'); |
|
|
|
$apiUrl = $url.'/transmission/rpc'; |
|
|
|
return $apiUrl; |
|
|
|
$api_url = $url.'/transmission/rpc'; |
|
|
|
|
|
|
|
return $api_url; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
@ -2,6 +2,10 @@ |
|
|
|
<div class="items"> |
|
|
|
<input type="hidden" name="config[enabled]" value="1" /> |
|
|
|
<input type="hidden" data-config="type" class="config-item" name="config[type]" value="\App\SupportedApps\Transmission" /> |
|
|
|
<div class="input"> |
|
|
|
<label>{{ strtoupper(__('app.url')) }}</label> |
|
|
|
{!! Form::text('config[override_url]', null, array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!} |
|
|
|
</div> |
|
|
|
<div class="input"> |
|
|
|
<label>{{ __('app.apps.username') }}</label> |
|
|
|
{!! Form::text('config[username]', null, array('placeholder' => __('app.apps.username'), 'data-config' => 'username', 'class' => 'form-control config-item')) !!} |
|
|
|