File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 66from plexapi .exceptions import BadRequest , NotFound , UnknownType , Unsupported
77from plexapi .utils import tag_helper
88
9+ DONT_RELOAD_FOR_KEYS = ['key' , 'session' ]
910OPERATORS = {
1011 'exact' : lambda v , q : v == q ,
1112 'iexact' : lambda v , q : v .lower () == q .lower (),
@@ -278,7 +279,8 @@ def __getattribute__(self, attr):
278279 # Dragons inside.. :-/
279280 value = super (PlexPartialObject , self ).__getattribute__ (attr )
280281 # Check a few cases where we dont want to reload
281- if attr == 'key' or attr .startswith ('_' ): return value
282+ if attr in DONT_RELOAD_FOR_KEYS : return value
283+ if attr .startswith ('_' ): return value
282284 if value not in (None , []): return value
283285 if self .isFullObject (): return value
284286 # Log the reload.
You can’t perform that action at this time.
0 commit comments