From 08c8ee077409b4ab2f3fb703e853d691a598df1a Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 23 Mar 2020 17:50:54 -0700 Subject: [PATCH] Add ability to flush recently_added database table --- API.md | 4 +++ data/interfaces/default/settings.html | 22 +++++++++++++++- plexpy/database.py | 37 ++++++++++++--------------- plexpy/webserve.py | 14 ++++++++++ 4 files changed, 56 insertions(+), 21 deletions(-) diff --git a/API.md b/API.md index 799f4dee..8164bd97 100644 --- a/API.md +++ b/API.md @@ -278,6 +278,10 @@ Returns: ``` +### delete_recently_added +Flush out all of the recently added items in the database. + + ### delete_temp_sessions Flush out all of the temporary sessions in the database. diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 7e761534..31628c26 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -998,6 +998,20 @@

Set the delay (in seconds) to wait for consecutive recently added items to group together and to allow metadata to be processed before sending the notification. Minimum 60 seconds.

+
+ +

+ Attempt to fix recently added notifications by flushing out all of the recently added items in the database.
+ Warning: This will reset all recently added notifications. For emergency use only when recently added notifications are stuck! +

+
+
+
+ +
+
+
+