Add setting to enable Live TV logging

This commit is contained in:
JonnyWong16 2020-02-17 17:53:13 -08:00
parent 81ab9b006d
commit 5d1bc3cf9b
4 changed files with 13 additions and 2 deletions

View file

@ -227,7 +227,10 @@ class ActivityProcessor(object):
u"seconds, so we're not logging it." %
(session['rating_key'], str(real_play_time), import_ignore_interval))
if not is_import and not user_details['keep_history']:
if not is_import and session['live'] and not plexpy.CONFIG.LOGGING_LIVE_TV:
logging_enabled = False
logger.debug(u"Tautulli ActivityProcessor :: History logging for Live TV is disabled.")
elif not is_import and not user_details['keep_history']:
logging_enabled = False
logger.debug(u"Tautulli ActivityProcessor :: History logging for user '%s' is disabled." % user_details['username'])
elif not is_import and not library_details['keep_history']: