File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2235,17 +2235,20 @@ def _loadData(self, data):
2235
2235
2236
2236
@cached_data_property
2237
2237
def items (self ):
2238
+ if self .more and self .key : # If there are more items to load, fetch them
2239
+ items = self .fetchItems (self .key )
2240
+ self .more = False
2241
+ self .size = len (items )
2242
+ return items
2243
+ # Otherwise, all the data is in the initial _data XML response
2238
2244
return self .findItems (self ._data )
2239
2245
2240
2246
def __len__ (self ):
2241
2247
return self .size
2242
2248
2243
2249
def reload (self ):
2244
2250
""" Reloads the hub to fetch all items in the hub. """
2245
- if self .more and self .key :
2246
- self .items = self .fetchItems (self .key )
2247
- self .more = False
2248
- self .size = len (self .items )
2251
+ self ._invalidateCachedProperties ()
2249
2252
2250
2253
def section (self ):
2251
2254
""" Returns the :class:`~plexapi.library.LibrarySection` this hub belongs to.
You can’t perform that action at this time.
0 commit comments