mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Do not send recently added notification if item updated more than 24 hours ago
This commit is contained in:
parent
4e718056b6
commit
de58136314
1 changed files with 5 additions and 0 deletions
|
@ -484,6 +484,11 @@ def on_created(rating_key, **kwargs):
|
||||||
|
|
||||||
if metadata:
|
if metadata:
|
||||||
notify = True
|
notify = True
|
||||||
|
now = int(time.time())
|
||||||
|
|
||||||
|
if helpers.cast_to_int(metadata['updated_at']) < now - 86400: # Updated more than 24 hours ago
|
||||||
|
logger.debug(u"Tautulli TimelineHandler :: Library item %s updated more than 24 hours ago. Not notifying." % str(rating_key))
|
||||||
|
notify = False
|
||||||
|
|
||||||
data_factory = datafactory.DataFactory()
|
data_factory = datafactory.DataFactory()
|
||||||
if 'child_keys' not in kwargs:
|
if 'child_keys' not in kwargs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue