ソースを参照

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,