From 058bd32329c188aca50a6e49f6d1e906f621887f Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Thu, 30 Apr 2020 22:11:06 -0700 Subject: [PATCH] Update import_database API docs --- API.md | 13 +++++++++---- plexpy/webserve.py | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/API.md b/API.md index 67df2254..adcb3131 100644 --- a/API.md +++ b/API.md @@ -2555,16 +2555,21 @@ Returns: ### import_database -Import a PlexWatch or Plexivity database into Tautulli. +Import a Tautulli, PlexWatch, or Plexivity database into Tautulli. ``` Required parameters: - app (str): "plexwatch" or "plexivity" + app (str): "tautulli" or "plexwatch" or "plexivity" database_path (str): The full path to the plexwatch database file - table_name (str): "processed" or "grouped" + method (str): For Tautulli only, "merge" or "append" or "overwrite" + table_name (str): For PlexWatch or Plexivity only, "processed" or "grouped" + Optional parameters: - import_ignore_interval (int): The minimum number of seconds for a stream to import + backup (bool): For Tautulli only, true or false whether to backup + the current database before importing + import_ignore_interval (int): For PlexWatch or Plexivity only, the minimum number + of seconds for a stream to import Returns: None diff --git a/plexpy/webserve.py b/plexpy/webserve.py index 49aa03a4..00a92a65 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -3748,7 +3748,7 @@ class WebInterface(object): Required parameters: app (str): "tautulli" or "plexwatch" or "plexivity" database_path (str): The full path to the plexwatch database file - method (str): For Tautulli only, "merge" or "overwrite" + method (str): For Tautulli only, "merge" or "append" or "overwrite" table_name (str): For PlexWatch or Plexivity only, "processed" or "grouped"