From 133335a3fb3335365a9eea0f18f3869de171b13b Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 27 Apr 2019 10:16:11 -0700 Subject: [PATCH] Check section_id > 0 when returning library details --- plexpy/libraries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/libraries.py b/plexpy/libraries.py index da646125..5c203c8e 100644 --- a/plexpy/libraries.py +++ b/plexpy/libraries.py @@ -694,7 +694,7 @@ class Libraries(object): 'deleted_section': 0 } - if not section_id: + if not section_id or helpers.cast_to_int(section_id) <= 0: return default_return def get_library_details(section_id=section_id):