codecID only for video streams and remove dialogNorm from audio streams
This commit is contained in:
@@ -210,7 +210,6 @@ class MediaPartStream(PlexObject):
|
|||||||
""" Load attribute values from Plex XML response. """
|
""" Load attribute values from Plex XML response. """
|
||||||
self._data = data
|
self._data = data
|
||||||
self.codec = data.attrib.get('codec')
|
self.codec = data.attrib.get('codec')
|
||||||
self.codecID = data.attrib.get('codecID')
|
|
||||||
self.default = cast(bool, data.attrib.get('selected', '0'))
|
self.default = cast(bool, data.attrib.get('selected', '0'))
|
||||||
self.displayTitle = data.attrib.get('displayTitle')
|
self.displayTitle = data.attrib.get('displayTitle')
|
||||||
self.extendedDisplayTitle = data.attrib.get('extendedDisplayTitle')
|
self.extendedDisplayTitle = data.attrib.get('extendedDisplayTitle')
|
||||||
@@ -268,6 +267,7 @@ class VideoStream(MediaPartStream):
|
|||||||
self.cabac = cast(int, data.attrib.get('cabac'))
|
self.cabac = cast(int, data.attrib.get('cabac'))
|
||||||
self.chromaLocation = data.attrib.get('chromaLocation')
|
self.chromaLocation = data.attrib.get('chromaLocation')
|
||||||
self.chromaSubsampling = data.attrib.get('chromaSubsampling')
|
self.chromaSubsampling = data.attrib.get('chromaSubsampling')
|
||||||
|
self.codecID = data.attrib.get('codecID')
|
||||||
self.codedHeight = data.attrib.get('codedHeight')
|
self.codedHeight = data.attrib.get('codedHeight')
|
||||||
self.codedWidth = data.attrib.get('codedWidth')
|
self.codedWidth = data.attrib.get('codedWidth')
|
||||||
self.colorPrimaries = data.attrib.get('colorPrimaries')
|
self.colorPrimaries = data.attrib.get('colorPrimaries')
|
||||||
@@ -326,7 +326,6 @@ class AudioStream(MediaPartStream):
|
|||||||
self.bitrate = cast(int, data.attrib.get('bitrate'))
|
self.bitrate = cast(int, data.attrib.get('bitrate'))
|
||||||
self.bitrateMode = data.attrib.get('bitrateMode')
|
self.bitrateMode = data.attrib.get('bitrateMode')
|
||||||
self.channels = cast(int, data.attrib.get('channels'))
|
self.channels = cast(int, data.attrib.get('channels'))
|
||||||
self.dialogNorm = cast(int, data.attrib.get('dialogNorm'))
|
|
||||||
self.duration = cast(int, data.attrib.get('duration'))
|
self.duration = cast(int, data.attrib.get('duration'))
|
||||||
self.profile = data.attrib.get('profile')
|
self.profile = data.attrib.get('profile')
|
||||||
self.requiredBandwidths = data.attrib.get('requiredBandwidths')
|
self.requiredBandwidths = data.attrib.get('requiredBandwidths')
|
||||||
|
@@ -288,7 +288,6 @@ class Export(object):
|
|||||||
},
|
},
|
||||||
'audioStreams': {
|
'audioStreams': {
|
||||||
'codec': None,
|
'codec': None,
|
||||||
'codecID': None,
|
|
||||||
'default': None,
|
'default': None,
|
||||||
'displayTitle': None,
|
'displayTitle': None,
|
||||||
'extendedDisplayTitle': None,
|
'extendedDisplayTitle': None,
|
||||||
@@ -305,7 +304,6 @@ class Export(object):
|
|||||||
'bitrate': None,
|
'bitrate': None,
|
||||||
'bitrateMode': None,
|
'bitrateMode': None,
|
||||||
'channels': None,
|
'channels': None,
|
||||||
'dialogNorm': None,
|
|
||||||
'duration': None,
|
'duration': None,
|
||||||
'profile': None,
|
'profile': None,
|
||||||
'requiredBandwidths': None,
|
'requiredBandwidths': None,
|
||||||
@@ -314,7 +312,6 @@ class Export(object):
|
|||||||
},
|
},
|
||||||
'subtitleStreams': {
|
'subtitleStreams': {
|
||||||
'codec': None,
|
'codec': None,
|
||||||
'codecID': None,
|
|
||||||
'default': None,
|
'default': None,
|
||||||
'displayTitle': None,
|
'displayTitle': None,
|
||||||
'extendedDisplayTitle': None,
|
'extendedDisplayTitle': None,
|
||||||
@@ -597,7 +594,6 @@ class Export(object):
|
|||||||
},
|
},
|
||||||
'audioStreams': {
|
'audioStreams': {
|
||||||
'codec': None,
|
'codec': None,
|
||||||
'codecID': None,
|
|
||||||
'default': None,
|
'default': None,
|
||||||
'displayTitle': None,
|
'displayTitle': None,
|
||||||
'extendedDisplayTitle': None,
|
'extendedDisplayTitle': None,
|
||||||
@@ -614,7 +610,6 @@ class Export(object):
|
|||||||
'bitrate': None,
|
'bitrate': None,
|
||||||
'bitrateMode': None,
|
'bitrateMode': None,
|
||||||
'channels': None,
|
'channels': None,
|
||||||
'dialogNorm': None,
|
|
||||||
'duration': None,
|
'duration': None,
|
||||||
'profile': None,
|
'profile': None,
|
||||||
'requiredBandwidths': None,
|
'requiredBandwidths': None,
|
||||||
@@ -623,7 +618,6 @@ class Export(object):
|
|||||||
},
|
},
|
||||||
'subtitleStreams': {
|
'subtitleStreams': {
|
||||||
'codec': None,
|
'codec': None,
|
||||||
'codecID': None,
|
|
||||||
'default': None,
|
'default': None,
|
||||||
'displayTitle': None,
|
'displayTitle': None,
|
||||||
'extendedDisplayTitle': None,
|
'extendedDisplayTitle': None,
|
||||||
@@ -833,7 +827,6 @@ class Export(object):
|
|||||||
'syncState': None,
|
'syncState': None,
|
||||||
'audioStreams': {
|
'audioStreams': {
|
||||||
'codec': None,
|
'codec': None,
|
||||||
'codecID': None,
|
|
||||||
'default': None,
|
'default': None,
|
||||||
'displayTitle': None,
|
'displayTitle': None,
|
||||||
'extendedDisplayTitle': None,
|
'extendedDisplayTitle': None,
|
||||||
@@ -861,7 +854,6 @@ class Export(object):
|
|||||||
},
|
},
|
||||||
'lyricStreams': {
|
'lyricStreams': {
|
||||||
'codec': None,
|
'codec': None,
|
||||||
'codecID': None,
|
|
||||||
'default': None,
|
'default': None,
|
||||||
'displayTitle': None,
|
'displayTitle': None,
|
||||||
'extendedDisplayTitle': None,
|
'extendedDisplayTitle': None,
|
||||||
|
Reference in New Issue
Block a user