Skip to content

Commit

Permalink
New: Get Libraries for Dashboard Auto Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
thezak48 committed Apr 15, 2023
1 parent d671338 commit cde3e8a
Show file tree
Hide file tree
Showing 7 changed files with 4,902 additions and 10,195 deletions.
3 changes: 3 additions & 0 deletions Varken.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def thread(job, **kwargs):
schedule.every(12).to(24).hours.do(thread, GEOIPHANDLER.update)
for server in CONFIG.tautulli_servers:
TAUTULLI = TautulliAPI(server, DBMANAGER, GEOIPHANDLER)
if server.get_libraries:
at_time = schedule.every(server.get_libraries_run_days).days
at_time.do(thread, TAUTULLI.get_libraries).tag("tautulli-{}-get_libraries".format(server.id))
if server.get_activity:
at_time = schedule.every(server.get_activity_run_seconds).seconds
at_time.do(thread, TAUTULLI.get_activity).tag("tautulli-{}-get_activity".format(server.id))
Expand Down
Loading

0 comments on commit cde3e8a

Please sign in to comment.