Another attempt at using websockets for recently added

This commit is contained in:
JonnyWong16
2016-10-08 12:55:17 -07:00
committed by JonnyWong16
parent 438e525319
commit 8ed2f0eafa
4 changed files with 33 additions and 20 deletions

View File

@@ -163,14 +163,14 @@ def process(opcode, data):
activity = activity_handler.ActivityHandler(timeline=time_line[0])
activity.process()
#if type == 'timeline':
# try:
# time_line = info.get('_children')
# except:
# logger.debug(u"PlexPy WebSocket :: Timeline event found but unable to get timeline data.")
# return False
if type == 'timeline':
try:
time_line = info.get('_children')
except:
logger.debug(u"PlexPy WebSocket :: Timeline event found but unable to get timeline data.")
return False
# activity = activity_handler.TimelineHandler(timeline=time_line[0])
# activity.process()
activity = activity_handler.TimelineHandler(timeline=time_line[0])
activity.process()
return True