MCPcopy Create free account
hub / github.com/blacktwin/JBOPS / refresh_section

Function refresh_section

utility/plex_dance.py:90–101  ·  view source on GitHub ↗
(sectionID)

Source from the content-addressed store, hash-verified

88
89
90def refresh_section(sectionID):
91 plex = PlexServer(PLEX_URL, PLEX_TOKEN, session=session)
92 section = plex.library.sectionByID(sectionID)
93 section.update()
94 time.sleep(10)
95 plex = PlexServer(PLEX_URL, PLEX_TOKEN, session=session)
96 section = plex.library.sectionByID(sectionID)
97 while section.refreshing is True:
98 time.sleep(10)
99 print("Waiting for library to finish refreshing to continue dance.")
100 plex = PlexServer(PLEX_URL, PLEX_TOKEN, session=session)
101 section = plex.library.sectionByID(sectionID)
102
103
104if __name__ == '__main__':

Callers 1

plex_dance.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected