The api from plex has changed. This reflects the changes from Video to metadata in the api url.

This commit is contained in:
2018-07-28 10:46:25 +02:00
parent fe5f0c815e
commit 86e9188a5c

View File

@@ -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: [] };