Get rid off aggressive polling option and always use inactive status

This commit is contained in:
John Alberts 2018-03-16 15:08:04 -07:00
parent 72831d413b
commit 30200ac219
No known key found for this signature in database
GPG key ID: 1DEF383917D74AA3
13 changed files with 1 additions and 29 deletions

View file

@ -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()

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

@ -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',

View file

@ -61,7 +61,6 @@ return [
'apps.config' => 'Configurazione',
'apps.apikey' => 'Api Key',
'apps.enable' => 'Abilitato',
'apps.aggressive_polling' => 'Sondaggio aggressivo',
'url' => 'Url',
'title' => 'Titolo',

View file

@ -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',

View file

@ -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',

View file

@ -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ł',

View file

@ -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',

View file

@ -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',

View file

@ -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')) !!}