Now both Media and Media.Part in the JSON object about a stream is a list and need to index the first element of the stream to get this info.

This commit is contained in:
2017-09-07 23:47:11 +02:00
parent 28d0b63960
commit cd52d295b0
2 changed files with 7 additions and 3 deletions

View File

@@ -15,6 +15,8 @@ function convertStreamToMediaInfo(plexStream) {
mediaInfo.container = plexStream.container;
mediaInfo.audioCodec = plexStream.audioCodec;
console.log(mediaInfo)
return mediaInfo;
}