Browse Source

Disable EmbyConnect - https://github.com/MediaBrowser/Emby/issues/3553

causefx 7 years ago
parent
commit
bc7c471eb5
1 changed files with 10 additions and 0 deletions
  1. 10 0
      api/functions/auth-functions.php

+ 10 - 0
api/functions/auth-functions.php

@@ -339,6 +339,10 @@ function plugin_auth_emby_local($username, $password)
 // Authenticate against emby connect
 function plugin_auth_emby_connect($username, $password)
 {
+	// Emby disabled EmbyConnect on their API
+	// https://github.com/MediaBrowser/Emby/issues/3553
+	return plugin_auth_emby_local($username, $password);
+	/*
 	try {
 		// Get A User
 		$connectId = '';
@@ -389,15 +393,21 @@ function plugin_auth_emby_connect($username, $password)
 		writeLog('error', 'Emby Connect Auth Function - Error: ' . $e->getMessage(), $username);
 		return false;
 	}
+	*/
 }
 
 // Authenticate Against Emby Local (first) and Emby Connect
 function plugin_auth_emby_all($username, $password)
 {
+	// Emby disabled EmbyConnect on their API
+	// https://github.com/MediaBrowser/Emby/issues/3553
 	$localResult = plugin_auth_emby_local($username, $password);
+	return $localResult;
+	/*
 	if ($localResult) {
 		return $localResult;
 	} else {
 		return plugin_auth_emby_connect($username, $password);
 	}
+	*/
 }