def __init__(self,
              data_handler,
              overlay_bridge,
              session,
              buddycast_interval_function,
              log='',
              dnsindb=None):
     self.interval = buddycast_interval_function
     self.data_handler = data_handler
     self.dnsindb = dnsindb
     self.log = log
     self.overlay_bridge = overlay_bridge
     self.channelcastdb = ChannelCastDBHandler.getInstance()
     self.votecastdb = VoteCastDBHandler.getInstance()
     self.rtorrent_handler = RemoteTorrentHandler.getInstance()
     self.session = session
     self.my_permid = session.get_permid()
     self.network_delay = 30
     self.buddycast_core = None
     if self.log:
         self.overlay_log = OverlayLogger.getInstance(self.log)
         self.dnsindb = self.data_handler.get_dns_from_peerdb
     self.notifier = Notifier.getInstance()
     self.metadataDbHandler = MetadataDBHandler.getInstance()
     subtitleSupport = SubtitlesSupport.getInstance()
     self.peersHaveManger = PeersHaveManager.getInstance()
     if not self.peersHaveManger.isRegistered():
         self.peersHaveManger.register(self.metadataDbHandler,
                                       self.overlay_bridge)
 def __init__(self, data_handler, secure_overlay, session, buddycast_interval_function, log = '', dnsindb = None):
     self.interval = buddycast_interval_function
     self.data_handler = data_handler
     self.dnsindb = dnsindb
     self.log = log
     self.peerdb = PeerDBHandler.getInstance()
     self.votecastdb = VoteCastDBHandler.getInstance()
     self.session = session
     self.my_permid = session.get_permid()
     self.max_length = SINGLE_VOTECAST_LENGTH * (session.get_votecast_random_votes() + session.get_votecast_recent_votes())
     self.buddycast_core = None
     self.notifier = Notifier.getInstance()
     if self.log:
         self.overlay_log = OverlayLogger.getInstance(self.log)
 def __init__(self, data_handler, overlay_bridge, session, buddycast_interval_function, log = '', dnsindb = None):
     self.interval = buddycast_interval_function
     self.data_handler = data_handler
     self.dnsindb = dnsindb
     self.log = log
     self.overlay_bridge = overlay_bridge
     self.channelcastdb = ChannelCastDBHandler.getInstance()
     self.votecastdb = VoteCastDBHandler.getInstance()
     self.rtorrent_handler = RemoteTorrentHandler.getInstance()
     self.session = session
     self.my_permid = session.get_permid()
     self.network_delay = 30
     self.buddycast_core = None
     if self.log:
         self.overlay_log = OverlayLogger.getInstance(self.log)
         self.dnsindb = self.data_handler.get_dns_from_peerdb
     self.notifier = Notifier.getInstance()
     self.metadataDbHandler = MetadataDBHandler.getInstance()
     subtitleSupport = SubtitlesSupport.getInstance()
     self.peersHaveManger = PeersHaveManager.getInstance()
     if not self.peersHaveManger.isRegistered():
         self.peersHaveManger.register(self.metadataDbHandler, self.overlay_bridge)