From 44373e22de63724a241322aa71b82348b4d47a21 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 7 Jun 2021 08:54:45 -0700 Subject: [PATCH 1/2] Add venv to .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3f426050b..d3b10acef 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,7 @@ lib/ pip-selfcheck.json pyvenv.cfg MANIFEST - +venv/ # path for the test lib. tools/plex \ No newline at end of file From 90a1cff01eb0feeb90ff742cb809fa1b3210991a Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 7 Jun 2021 08:55:04 -0700 Subject: [PATCH 2/2] Fix return value when using USER_DONT_RELOAD_FOR_KEYS --- plexapi/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexapi/base.py b/plexapi/base.py index 0a653ac3c..21bdc912a 100644 --- a/plexapi/base.py +++ b/plexapi/base.py @@ -455,7 +455,7 @@ def __getattribute__(self, attr): # Check a few cases where we dont want to reload if attr in _DONT_RELOAD_FOR_KEYS: return value if attr in _DONT_OVERWRITE_SESSION_KEYS: return value - if attr in USER_DONT_RELOAD_FOR_KEYS: return + if attr in USER_DONT_RELOAD_FOR_KEYS: return value if attr.startswith('_'): return value if value not in (None, []): return value if self.isFullObject(): return value