Browse Source

Fixing Activity

pull/271/head
alxlaxv 7 years ago
committed by GitHub
parent
commit
26d5cb3f7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/SupportedApps/Sonarr.php

6
app/SupportedApps/Sonarr.php

@ -96,11 +96,7 @@ class Sonarr implements Contracts\Applications, Contracts\Livestats {
$api_url = $url.'/api/queue?apikey='.$config->apiKey.'&pageSize=1';
$client = new Client(['http_errors' => false, 'timeout' => 15, 'connect_timeout' => 15]);
$res = $client->request('GET', $api_url);
$queue = 0;
if (empty($res->getBody()))
{
$queue = sizeof($res->getBody());
}
$queue count($res->getBody());
return $queue;
}
}

Loading…
Cancel
Save