Merge pull request #105 from KevinMidboe/plex_api_update
Plex api update
This commit is contained in:
@@ -75,7 +75,7 @@ class PlexRepository {
|
|||||||
return rp(options)
|
return rp(options)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
if (result.MediaContainer.size > 0) {
|
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: Object.keys(playing).length, video: playing };
|
||||||
}
|
}
|
||||||
return { size: 0, video: [] };
|
return { size: 0, video: [] };
|
||||||
|
|||||||
Reference in New Issue
Block a user