Add advanced config for number of notification threads

This commit is contained in:
JonnyWong16 2016-10-09 09:27:34 -07:00 committed by JonnyWong16
commit 7a37408459
2 changed files with 2 additions and 1 deletions

View file

@ -395,7 +395,7 @@ def start():
# Start background notification thread
if any([CONFIG.MOVIE_NOTIFY_ENABLE, CONFIG.TV_NOTIFY_ENABLE,
CONFIG.MUSIC_NOTIFY_ENABLE, CONFIG.NOTIFY_RECENTLY_ADDED]):
notification_handler.start_threads(num_threads=3)
notification_handler.start_threads(num_threads=CONFIG.NOTIFICATION_THREADS)
_STARTED = True

View file

@ -311,6 +311,7 @@ _CONFIG_DEFINITIONS = {
'NMA_ON_PMSUPDATE': (int, 'NMA', 0),
'NMA_ON_CONCURRENT': (int, 'NMA', 0),
'NMA_ON_NEWDEVICE': (int, 'NMA', 0),
'NOTIFICATION_THREADS': (int, 'Advanced', 2),
'NOTIFY_CONSECUTIVE': (int, 'Monitoring', 1),
'NOTIFY_GROUP_RECENTLY_ADDED': (int, 'Monitoring', 1),
'NOTIFY_UPLOAD_POSTERS': (int, 'Monitoring', 0),