Quellcode durchsuchen

code clean up and ombi console.log check

causefx vor 8 Jahren
Ursprung
Commit
2c52a994e5
2 geänderte Dateien mit 1 neuen und 7 gelöschten Zeilen
  1. 0 7
      api/functions/organizr-functions.php
  2. 1 0
      js/functions.js

+ 0 - 7
api/functions/organizr-functions.php

@@ -499,7 +499,6 @@ function getSSO()
 				'type' => 'switch',
 				'name' => 'ssoTautulli',
 				'label' => 'Enable',
-				
 				'value' => $GLOBALS['ssoTautulli']
 			)
 		)
@@ -1033,7 +1032,6 @@ function getImage()
 			# code...
 			break;
 	}
-	
 	if (isset($image_url) && isset($image_height) && isset($image_width) && isset($image_src)) {
 		$cachefile = $cacheDirectory . $key . '.jpg';
 		$cachetime = 604800;
@@ -1078,14 +1076,12 @@ function downloader($array)
 				case 'pause':
 					sabnzbdAction($array['data']['action'], $array['data']['target']);
 					break;
-				
 				default:
 					# code...
 					break;
 			}
 			break;
 		case 'nzbget':
-			
 			break;
 		default:
 			# code...
@@ -1110,7 +1106,6 @@ function sabnzbdAction($action = null, $target = null)
 				# code...
 				break;
 		}
-		
 		try {
 			$options = (localURL($url)) ? array('verify' => false) : array();
 			$response = Requests::get($url, array(), $options);
@@ -1225,7 +1220,6 @@ function libraryList($type = null)
 				};
 			}
 			break;
-		
 		default:
 			# code...
 			break;
@@ -1255,7 +1249,6 @@ function plexJoin($username, $email, $password)
 			'user[password]' => $password,
 		);
 		$response = Requests::post($url, $headers, $data, array());
-		
 		$json = json_decode($response->body, true);
 		$errors = (!empty($json['errors']) ? true : false);
 		$success = (!empty($json['user']) ? true : false);

+ 1 - 0
js/functions.js

@@ -2802,6 +2802,7 @@ function ombiActions(id,action,type){
 	ajaxloader('.preloader-'+id,'in');
 	organizrAPI('POST','api/?v1/ombi',{id:id, action:action, type:type}).success(function(data) {
 		var response = JSON.parse(data);
+		console.log(response.data);
 		if(response.data !== false){
 			homepageRequests();
 			if(action !== 'add'){