alxlaxv
					
					7 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
3 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					app/SupportedApps/Sonarr.php
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -17,9 +17,9 @@ class Sonarr implements Contracts\Applications, Contracts\Livestats { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public function testConfig() | 
					 | 
					 | 
					    public function testConfig() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    { | 
					 | 
					 | 
					    { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        $res = $this->getStatus()(); | 
					 | 
					 | 
					        $res = $this->getStatus(); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        $wanted = json_decode($res->getBody()); | 
					 | 
					 | 
					        $status = json_decode($res->getBody()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        if(isset($wanted->version)) | 
					 | 
					 | 
					        if(isset($status->version)) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        { | 
					 | 
					 | 
					        { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            echo 'Successfully connected to the API'; | 
					 | 
					 | 
					            echo 'Successfully connected to the API'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |