Browse Source

Update Sonarr.php

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

6
app/SupportedApps/Sonarr.php

@ -17,9 +17,9 @@ class Sonarr implements Contracts\Applications, Contracts\Livestats {
}
public function testConfig()
{
$res = $this->getStatus()();
$wanted = json_decode($res->getBody());
if(isset($wanted->version))
$res = $this->getStatus();
$status = json_decode($res->getBody());
if(isset($status->version))
{
echo 'Successfully connected to the API';
}

Loading…
Cancel
Save