瀏覽代碼

Attempt to Fix Emby Connect

causefx 7 年之前
父節點
當前提交
392a8c365c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      api/functions/auth-functions.php

+ 2 - 1
api/functions/auth-functions.php

@@ -310,7 +310,8 @@ function plugin_auth_emby_connect($username, $password)
 					$connectURL = 'https://connect.emby.media/service/user/authenticate';
 					$headers = array(
 						'Accept' => 'application/json',
-						'Content-Type' => 'application/x-www-form-urlencoded',
+						'Content-Type' => 'application/json',
+						'X-Application' => 'Organizr/2.0'
 					);
 					$data = array(
 						'nameOrEmail' => $username,