def _notify(self):
     """
     notify the server upcoming stream is uploading
     """
     try:
         video_session_id = get_channel_details(self._host_id, self._channel_id)
         update_session_category(self._host_id, video_session_id, self._category_id)
     except:
         logging.exception("update session category error.")
Example #2
0
 def _notify(self):
     """
     notify the server upcoming stream is uploading
     """
     push_event_notification(self._event_id, self._host_id)
     user_dao = CrawledUserDao()
     try:
         video_session_id = get_channel_details(self._host_id, self._channel_id)
         update_session_category(self._host_id, video_session_id, self._category_id)
         user_dao.update_crawled_user_upcoming_live_count(self._host_id)
     except:
         logging.exception("update session category error.", exc_info=True)
     finally:
         user_dao.close()