File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,6 @@ def _loadData(self, data):
403
403
self .parentTitle = data .attrib .get ('parentTitle' )
404
404
self .rating = utils .cast (float , data .attrib .get ('rating' ))
405
405
self .studio = data .attrib .get ('studio' )
406
- self .ultraBlurColors = self .findItem (data , media .UltraBlurColors )
407
406
self .viewedLeafCount = utils .cast (int , data .attrib .get ('viewedLeafCount' ))
408
407
self .year = utils .cast (int , data .attrib .get ('year' ))
409
408
@@ -435,6 +434,10 @@ def styles(self):
435
434
def subformats (self ):
436
435
return self .findItems (self ._data , media .Subformat )
437
436
437
+ @cached_data_property
438
+ def ultraBlurColors (self ):
439
+ return self .findItem (self ._data , media .UltraBlurColors )
440
+
438
441
def __iter__ (self ):
439
442
for track in self .tracks ():
440
443
yield track
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ def _loadData(self, data):
102
102
self .title = data .attrib .get ('title' )
103
103
self .titleSort = data .attrib .get ('titleSort' , self .title )
104
104
self .type = data .attrib .get ('type' )
105
- self .ultraBlurColors = self .findItem (data , media .UltraBlurColors )
106
105
self .updatedAt = utils .toDatetime (data .attrib .get ('updatedAt' ))
107
106
self .userRating = utils .cast (float , data .attrib .get ('userRating' ))
108
107
self ._items = None # cache for self.items
@@ -121,6 +120,10 @@ def images(self):
121
120
def labels (self ):
122
121
return self .findItems (self ._data , media .Label )
123
122
123
+ @cached_data_property
124
+ def ultraBlurColors (self ):
125
+ return self .findItem (self ._data , media .UltraBlurColors )
126
+
124
127
def __len__ (self ): # pragma: no cover
125
128
return len (self .items ())
126
129
Original file line number Diff line number Diff line change @@ -1055,7 +1055,6 @@ def _loadData(self, data):
1055
1055
self .rating = utils .cast (float , data .attrib .get ('rating' ))
1056
1056
self .skipParent = utils .cast (bool , data .attrib .get ('skipParent' , '0' ))
1057
1057
self .sourceURI = data .attrib .get ('source' ) # remote playlist item
1058
- self .ultraBlurColors = self .findItem (data , media .UltraBlurColors )
1059
1058
self .viewOffset = utils .cast (int , data .attrib .get ('viewOffset' , 0 ))
1060
1059
self .year = utils .cast (int , data .attrib .get ('year' ))
1061
1060
@@ -1110,6 +1109,10 @@ def roles(self):
1110
1109
def writers (self ):
1111
1110
return self .findItems (self ._data , media .Writer )
1112
1111
1112
+ @cached_data_property
1113
+ def ultraBlurColors (self ):
1114
+ return self .findItem (self ._data , media .UltraBlurColors )
1115
+
1113
1116
@cached_property
1114
1117
def parentKey (self ):
1115
1118
""" Returns the parentKey. Refer to the Episode attributes. """
You can’t perform that action at this time.
0 commit comments