Browse Source
Get rid off aggressive polling option and always use inactive status
pull/133/head
John Alberts
7 years ago
No known key found for this signature in database
GPG Key ID: 1DEF383917D74AA3
13 changed files with
1 additions and
29 deletions
-
app/SupportedApps/CouchPotato.php
-
resources/lang/de/app.php
-
resources/lang/en/app.php
-
resources/lang/es/app.php
-
resources/lang/fi/app.php
-
resources/lang/fr/app.php
-
resources/lang/it/app.php
-
resources/lang/nl/app.php
-
resources/lang/no/app.php
-
resources/lang/pl/app.php
-
resources/lang/sv/app.php
-
resources/lang/tr/app.php
-
resources/views/supportedapps/couchpotato.blade.php
|
|
@ -90,11 +90,7 @@ class CouchPotato implements Contracts\Applications, Contracts\Livestats |
|
|
|
<li><span class="title">Available</span><sub>'.$availableMovies.'</sub></li> |
|
|
|
</ul> |
|
|
|
'; |
|
|
|
$active = 'inactive'; |
|
|
|
if (isset($this->config->aggressive_polling) && $this->config->aggressive_polling) { |
|
|
|
$active = 'active'; |
|
|
|
} |
|
|
|
return json_encode(['status' => $active, 'html' => $html]);; |
|
|
|
return json_encode(['status' => 'inactive', 'html' => $html]);; |
|
|
|
} |
|
|
|
|
|
|
|
private function sendRequest() |
|
|
|
|
|
@ -44,7 +44,6 @@ return array ( |
|
|
|
'apps.username' => 'Benutzername', |
|
|
|
'apps.password' => 'Passwort', |
|
|
|
'apps.config' => 'Konfig', |
|
|
|
'apps.aggressive_polling' => 'Aggressives Polling', |
|
|
|
'url' => 'Url', |
|
|
|
'title' => 'Titel', |
|
|
|
'delete' => 'Löschen', |
|
|
|
|
|
@ -66,7 +66,6 @@ return [ |
|
|
|
'apps.tag_name' => 'Tag name', |
|
|
|
'apps.tags' => 'Tags', |
|
|
|
'apps.override' => 'If different to main url', |
|
|
|
'apps.aggressive_polling' => 'Aggressive polling', |
|
|
|
|
|
|
|
'url' => 'Url', |
|
|
|
'title' => 'Title', |
|
|
|
|
|
@ -44,7 +44,6 @@ return array ( |
|
|
|
'apps.username' => 'Nombre de usuario', |
|
|
|
'apps.password' => 'Contraseña', |
|
|
|
'apps.config' => 'Config', |
|
|
|
'apps.aggressive_polling' => 'Encuesta agresiva', |
|
|
|
'url' => 'Url', |
|
|
|
'title' => 'Título', |
|
|
|
'delete' => 'Borrar', |
|
|
|
|
|
@ -44,7 +44,6 @@ return array ( |
|
|
|
'apps.username' => 'Käyttäjätunnus', |
|
|
|
'apps.password' => 'Salasana', |
|
|
|
'apps.config' => 'Konfiguraatio', |
|
|
|
'apps.aggressive_polling' => 'Agressieve polling', |
|
|
|
'url' => 'Url', |
|
|
|
'title' => 'Otsikko', |
|
|
|
'delete' => 'Poistaa', |
|
|
|
|
|
@ -44,7 +44,6 @@ return array ( |
|
|
|
'apps.username' => 'Nom d\'utilisateur', |
|
|
|
'apps.password' => 'Mot de passe', |
|
|
|
'apps.config' => 'Config', |
|
|
|
'apps.aggressive_polling' => 'Scrutation agressive', |
|
|
|
'url' => 'Url', |
|
|
|
'title' => 'Titre', |
|
|
|
'delete' => 'Effacer', |
|
|
|
|
|
@ -61,7 +61,6 @@ return [ |
|
|
|
'apps.config' => 'Configurazione', |
|
|
|
'apps.apikey' => 'Api Key', |
|
|
|
'apps.enable' => 'Abilitato', |
|
|
|
'apps.aggressive_polling' => 'Sondaggio aggressivo', |
|
|
|
|
|
|
|
'url' => 'Url', |
|
|
|
'title' => 'Titolo', |
|
|
|
|
|
@ -65,7 +65,6 @@ return [ |
|
|
|
'apps.add_tag' => 'Tag toevoegen', |
|
|
|
'apps.tag_name' => 'Naam van tag', |
|
|
|
'apps.tags' => 'Tags', |
|
|
|
'apps.aggressive_polling' => 'Agressieve polling', |
|
|
|
|
|
|
|
'url' => 'URL', |
|
|
|
'title' => 'Titel', |
|
|
|
|
|
@ -61,7 +61,6 @@ return [ |
|
|
|
'apps.config' => 'Konfigurasjon', |
|
|
|
'apps.apikey' => 'Api nøkkel', |
|
|
|
'apps.enable' => 'Aktiver', |
|
|
|
'apps.aggressive_polling' => 'Aggressiv avstemning', |
|
|
|
|
|
|
|
'url' => 'Url', |
|
|
|
'title' => 'Tittel', |
|
|
|
|
|
@ -61,7 +61,6 @@ return [ |
|
|
|
'apps.config' => 'Ustawienia', |
|
|
|
'apps.apikey' => 'Klucz API', |
|
|
|
'apps.enable' => 'Włącz', |
|
|
|
'apps.aggressive_polling' => 'Agresywny głosowanie', |
|
|
|
|
|
|
|
'url' => 'URL', |
|
|
|
'title' => 'Tytuł', |
|
|
|
|
|
@ -44,7 +44,6 @@ return array ( |
|
|
|
'apps.username' => 'Användarnamn', |
|
|
|
'apps.password' => 'Lösenord', |
|
|
|
'apps.config' => 'Konfiguration', |
|
|
|
'apps.aggressive_polling' => 'Aggressiv omröstning', |
|
|
|
'url' => 'Url', |
|
|
|
'title' => 'Titel', |
|
|
|
'delete' => 'Radera', |
|
|
|
|
|
@ -59,7 +59,6 @@ return [ |
|
|
|
'apps.username' => 'Kullanıcı adı', |
|
|
|
'apps.password' => 'Şifre', |
|
|
|
'apps.config' => 'Yapılandırma', |
|
|
|
'apps.aggressive_polling' => 'Agresif oy verme', |
|
|
|
|
|
|
|
'url' => 'Adres', |
|
|
|
'title' => 'Başlık', |
|
|
|
|
|
@ -2,19 +2,6 @@ |
|
|
|
<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\CouchPotato" /> |
|
|
|
<div class="input"> |
|
|
|
<label>{{ __('app.apps.aggressive_polling') }}</label> |
|
|
|
{!! Form::hidden('config[aggressive_polling', '0') !!} |
|
|
|
<label class="switch"> |
|
|
|
<?php |
|
|
|
$checked = false; |
|
|
|
if(isset($item->config->aggressive_polling) && (bool)$item->config->aggressive_polling === true) $checked = true; |
|
|
|
$set_checked = ($checked) ? ' checked="checked"' : ''; |
|
|
|
?> |
|
|
|
<input type="checkbox" name="config[aggressive_polling]" value="1"<?php echo $set_checked;?> /> |
|
|
|
<span class="slider round"></span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
<div class="input"> |
|
|
|
<label>{{ __('app.apps.apikey') }}</label> |
|
|
|
{!! Form::text('config[apikey]', null, array('placeholder' => __('app.apps.apikey'), 'data-config' => 'apikey', 'class' => 'form-control config-item')) !!} |
|
|
|