@@ -37,7 +37,7 @@ class Media(PlexObject):
37
37
videoResolution (str): The video resolution of the media (ex: sd).
38
38
width (int): The width of the video in pixels (ex: 608).
39
39
40
- < Photo_only_attributes> : The following attributes are only available for photos.
40
+ Photo_only_attributes: The following attributes are only available for photos.
41
41
42
42
* aperture (str): The aperture used to take the photo.
43
43
* exposure (str): The exposure used to take the photo.
@@ -74,13 +74,13 @@ def _loadData(self, data):
74
74
self .width = utils .cast (int , data .attrib .get ('width' ))
75
75
self .uuid = data .attrib .get ('uuid' )
76
76
77
- if self . _isChildOf ( etag = ' Photo' ):
78
- self .aperture = data .attrib .get ('aperture' )
79
- self .exposure = data .attrib .get ('exposure' )
80
- self .iso = utils .cast (int , data .attrib .get ('iso' ))
81
- self .lens = data .attrib .get ('lens' )
82
- self .make = data .attrib .get ('make' )
83
- self .model = data .attrib .get ('model' )
77
+ # Photo only attributes
78
+ self .aperture = data .attrib .get ('aperture' )
79
+ self .exposure = data .attrib .get ('exposure' )
80
+ self .iso = utils .cast (int , data .attrib .get ('iso' ))
81
+ self .lens = data .attrib .get ('lens' )
82
+ self .make = data .attrib .get ('make' )
83
+ self .model = data .attrib .get ('model' )
84
84
85
85
parent = self ._parent ()
86
86
self ._parentKey = parent .key
@@ -381,7 +381,7 @@ class AudioStream(MediaPartStream):
381
381
samplingRate (int): The sampling rate of the audio stream (ex: xxx)
382
382
streamIdentifier (int): The stream identifier of the audio stream.
383
383
384
- < Track_only_attributes> : The following attributes are only available for tracks.
384
+ Track_only_attributes: The following attributes are only available for tracks.
385
385
386
386
* albumGain (float): The gain for the album.
387
387
* albumPeak (float): The peak for the album.
@@ -408,16 +408,16 @@ def _loadData(self, data):
408
408
self .samplingRate = utils .cast (int , data .attrib .get ('samplingRate' ))
409
409
self .streamIdentifier = utils .cast (int , data .attrib .get ('streamIdentifier' ))
410
410
411
- if self . _isChildOf ( etag = ' Track' ):
412
- self .albumGain = utils .cast (float , data .attrib .get ('albumGain' ))
413
- self .albumPeak = utils .cast (float , data .attrib .get ('albumPeak' ))
414
- self .albumRange = utils .cast (float , data .attrib .get ('albumRange' ))
415
- self .endRamp = data .attrib .get ('endRamp' )
416
- self .gain = utils .cast (float , data .attrib .get ('gain' ))
417
- self .loudness = utils .cast (float , data .attrib .get ('loudness' ))
418
- self .lra = utils .cast (float , data .attrib .get ('lra' ))
419
- self .peak = utils .cast (float , data .attrib .get ('peak' ))
420
- self .startRamp = data .attrib .get ('startRamp' )
411
+ # Track only attributes
412
+ self .albumGain = utils .cast (float , data .attrib .get ('albumGain' ))
413
+ self .albumPeak = utils .cast (float , data .attrib .get ('albumPeak' ))
414
+ self .albumRange = utils .cast (float , data .attrib .get ('albumRange' ))
415
+ self .endRamp = data .attrib .get ('endRamp' )
416
+ self .gain = utils .cast (float , data .attrib .get ('gain' ))
417
+ self .loudness = utils .cast (float , data .attrib .get ('loudness' ))
418
+ self .lra = utils .cast (float , data .attrib .get ('lra' ))
419
+ self .peak = utils .cast (float , data .attrib .get ('peak' ))
420
+ self .startRamp = data .attrib .get ('startRamp' )
421
421
422
422
def setSelected (self ):
423
423
""" Sets this audio stream as the selected audio stream.
0 commit comments