mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Check if recently added notifications disabled for library
This commit is contained in:
parent
67e5c7de2c
commit
2c5d131019
1 changed files with 7 additions and 0 deletions
|
@ -153,6 +153,13 @@ def notify_conditions(notifier=None, notify_action=None, stream_data=None, timel
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
elif timeline_data:
|
elif timeline_data:
|
||||||
|
library_data = libraries.Libraries()
|
||||||
|
library_details = library_data.get_details(section_id=timeline_data['section_id'])
|
||||||
|
|
||||||
|
if not library_details['do_notify_created']:
|
||||||
|
# logger.debug(u"PlexPy NotificationHandler :: Notifications for library '%s' is disabled." % library_details['section_name'])
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue