From b447c37774fa91f8c5eaac900551ca0a5d1f412d Mon Sep 17 00:00:00 2001 From: herby2212 <12448284+herby2212@users.noreply.github.com> Date: Sun, 29 Oct 2023 20:09:53 +0100 Subject: [PATCH] refresh of library media stats for libraries page --- plexpy/libraries.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plexpy/libraries.py b/plexpy/libraries.py index b03568a5..0d4a5e74 100644 --- a/plexpy/libraries.py +++ b/plexpy/libraries.py @@ -93,6 +93,8 @@ def refresh_libraries(): if result == 'insert': new_keys.append(section['section_id']) + get_library_media_stats(section_id=section['section_id'], refresh=True) + add_live_tv_library(refresh=True) query = "UPDATE library_sections SET is_active = 0 WHERE server_id != ? OR " \