From 86e9188a5c3d571aaba13ff259f6e5d94fad0fc1 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sat, 28 Jul 2018 10:46:25 +0200 Subject: [PATCH] The api from plex has changed. This reflects the changes from Video to metadata in the api url. --- seasoned_api/src/plex/plexRepository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seasoned_api/src/plex/plexRepository.js b/seasoned_api/src/plex/plexRepository.js index b6b21d7..395cf0b 100644 --- a/seasoned_api/src/plex/plexRepository.js +++ b/seasoned_api/src/plex/plexRepository.js @@ -75,7 +75,7 @@ class PlexRepository { return rp(options) .then((result) => { if (result.MediaContainer.size > 0) { - const playing = result.MediaContainer.Video.map(convertPlexToStream); + const playing = result.MediaContainer.Metadata.map(convertPlexToStream); return { size: Object.keys(playing).length, video: playing }; } return { size: 0, video: [] };