session.get_title()) session.skip = True return # Calculate progress if not self.update_progress(session, info['time']): log.warn( 'Error while updating session progress, queued session to be updated' ) session.update_required = True session.save() return action = self.get_action(session, info['state']) if action: self.handle_action(session, media_type, action, info['state']) else: log.debug( self.status_message( session, info.get('state'))('Nothing to do this time for %s')) session.save() if self.handle_state(session, info['state']) or action: session.save() Dict.Save() Scrobbler.register(LoggingScrobbler, weight=1)
log.info('Playing unknown item, will not be scrobbled: "%s"' % ws.title) ws.skip = True return # Check if the view_offset has jumped (#131) if self.offset_jumped(ws, info['time']): log.info('View offset jump detected, ignoring the state update') ws.save() return ws.last_view_offset = info['time'] # Calculate progress if not self.update_progress(ws, info['time']): log.warn('Error while updating session progress, queued session to be updated') ws.update_required = True ws.save() return action = self.get_action(ws, info['state']) if action: self.handle_action(ws, action) else: log.debug(self.status_message(ws, info.get('state'))('Nothing to do this time for %s')) ws.save() self.handle_state(ws, info['state']) Scrobbler.register(LoggingScrobbler, weight=1)
session.skip = True return session.last_view_offset = view_offset # Calculate progress if not self.update_progress(session, view_offset): log.warn( 'Error while updating session progress, queued session to be updated' ) session.update_required = True session.save() return action = self.get_action(session, state) if action: self.handle_action(session, media_type, action, state) else: log.debug( self.status_message(session, state)('Nothing to do this time for %s')) session.save() if self.handle_state(session, state) or action: session.save() Dict.Save() Scrobbler.register(WebSocketScrobbler, weight=10)
log.info('Playing unknown item, will not be scrobbled: "%s"' % ws.title) ws.skip = True return # Check if the view_offset has jumped (#131) if self.offset_jumped(ws, view_offset): log.info('View offset jump detected, ignoring the state update') ws.save() return ws.last_view_offset = view_offset # Calculate progress if not self.update_progress(ws, view_offset): log.warn('Error while updating session progress, queued session to be updated') ws.update_required = True ws.save() return action = self.get_action(ws, state) if action: self.handle_action(ws, action) else: log.debug(self.status_message(ws, state)('Nothing to do this time for %s')) ws.save() self.handle_state(ws, state) Scrobbler.register(WebSocketScrobbler, weight=10)