From 19cb0f2274087b9fc0d40b9b6d1fc508e741e46f Mon Sep 17 00:00:00 2001 From: "Christopher M. Mitchell" Date: Fri, 26 Apr 2019 13:24:34 -0700 Subject: [PATCH 1/2] Update api.php Changing path used to scan for Chromecast clients to `/chromecast/devices` to match the endpoint exposed by the FlexTV PLex plugin. --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index 0fa30bd..65d5279 100644 --- a/api.php +++ b/api.php @@ -1061,7 +1061,7 @@ function scrapeServers($serverArray) { $serverUri = $device['uri']; $token = $device['Token']; $deviceId = $device['Id']; - $urls["${deviceId}_cast"] = ["$serverUri/chromecast/clients?X-Plex-Token=$token", ['Accept: application/json']]; + $urls["${deviceId}_cast"] = ["$serverUri/chromecast/devices?X-Plex-Token=$token", ['Accept: application/json']]; $urls["${deviceId}_dvr"] = ["$serverUri/livetv/dvrs?X-Plex-Token=$token", ['Accept: application/json']]; } From e02cd017dab29b22424c1e87a1df20d0b346823f Mon Sep 17 00:00:00 2001 From: "Christopher M. Mitchell" Date: Fri, 26 Apr 2019 13:26:35 -0700 Subject: [PATCH 2/2] Update api.php Changing url to latest Plex plugin. --- api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index 65d5279..5988583 100644 --- a/api.php +++ b/api.php @@ -1032,9 +1032,9 @@ function scanDevices($force = false) { $message = lang('uiNoCastPlugin'); $alert = [ [ - 'title' => 'Cast Plugin Not Found!', + 'title' => 'FlexTV Plugin Not Found!', 'message' => $message, - 'url' => "https://github.com/d8ahazard/Cast.bundle" + 'url' => "https://github.com/d8ahazard/FlexTV.bundle" ] ]; writeSession('messages', $alert);