Browse Source

changed sonarr api controller to use v3 api endpoint by default now

CauseFX 4 years ago
parent
commit
daca2af2a7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      api/vendor/kryptonit3/sonarr/src/Sonarr.php

+ 4 - 1
api/vendor/kryptonit3/sonarr/src/Sonarr.php

@@ -71,6 +71,9 @@ class Sonarr
 	    if ( $this->type == 'lidarr' ) {
 	    if ( $this->type == 'lidarr' ) {
 		    $uriData['includeArtist'] = 'true';
 		    $uriData['includeArtist'] = 'true';
 	    }
 	    }
+	    if ( $this->type == 'sonarr' ) {
+		    $uriData['includeSeries'] = 'true';
+	    }
 	    $response = [
 	    $response = [
             'uri' => 'calendar',
             'uri' => 'calendar',
             'type' => 'get',
             'type' => 'get',
@@ -658,7 +661,7 @@ class Sonarr
 		    $compare = new Comparator;
 		    $compare = new Comparator;
 		    switch ($this->type){
 		    switch ($this->type){
 			    case 'sonarr':
 			    case 'sonarr':
-				    $versionCheck = '';
+				    $versionCheck = 'v3/';
 				    break;
 				    break;
 			    case 'radarr':
 			    case 'radarr':
 			    	$versionCheck =  'v3/';
 			    	$versionCheck =  'v3/';