Browse Source

Get rid off aggressive polling option and always use inactive status

pull/133/head
John Alberts 7 years ago
parent
commit
30200ac219
No known key found for this signature in database GPG Key ID: 1DEF383917D74AA3
  1. 6
      app/SupportedApps/CouchPotato.php
  2. 1
      resources/lang/de/app.php
  3. 1
      resources/lang/en/app.php
  4. 1
      resources/lang/es/app.php
  5. 1
      resources/lang/fi/app.php
  6. 1
      resources/lang/fr/app.php
  7. 1
      resources/lang/it/app.php
  8. 1
      resources/lang/nl/app.php
  9. 1
      resources/lang/no/app.php
  10. 1
      resources/lang/pl/app.php
  11. 1
      resources/lang/sv/app.php
  12. 1
      resources/lang/tr/app.php
  13. 13
      resources/views/supportedapps/couchpotato.blade.php

6
app/SupportedApps/CouchPotato.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()

1
resources/lang/de/app.php

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

1
resources/lang/en/app.php

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

1
resources/lang/es/app.php

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

1
resources/lang/fi/app.php

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

1
resources/lang/fr/app.php

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

1
resources/lang/it/app.php

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

1
resources/lang/nl/app.php

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

1
resources/lang/no/app.php

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

1
resources/lang/pl/app.php

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

1
resources/lang/sv/app.php

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

1
resources/lang/tr/app.php

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

13
resources/views/supportedapps/couchpotato.blade.php

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

Loading…
Cancel
Save