Ejemplo n.º 1
0
 def __init__(self):
     Monitor.__init__(self)
     self.kodi = KodiWrapper()
     self.vtm_go = VtmGo(self.kodi)
     self.vtm_go_auth = VtmGoAuth(self.kodi)
     self.update_interval = 24 * 3600  # Every 24 hours
     self.cache_expiry = 30 * 24 * 3600  # One month
Ejemplo n.º 2
0
 def __init__(self):
     self.xbmcplayer = Player()
     Monitor.__init__(self)
     for playerid in state.PLAYER_STATES:
         state.PLAYER_STATES[playerid] = dict(state.PLAYSTATE)
         state.OLD_PLAYER_STATES[playerid] = dict(state.PLAYSTATE)
     LOG.info("Kodi monitor started.")
Ejemplo n.º 3
0
 def __init__(self, callback):
     self.mgr = callback
     self.doUtils = DownloadUtils().downloadUrl
     self.xbmcplayer = Player()
     self.playqueue = self.mgr.playqueue
     Monitor.__init__(self)
     log.info("Kodi monitor started.")
Ejemplo n.º 4
0
 def __init__(self):
     Monitor.__init__(self)
     self.update_interval = 24 * 3600  # Every 24 hours
     self.cache_expiry = 30 * 24 * 3600  # One month
     self._auth = AuthApi(kodiutils.get_setting('username'),
                          kodiutils.get_setting('password'),
                          kodiutils.get_tokens_path())
Ejemplo n.º 5
0
 def __init__(self, callback):
     self.mgr = callback
     self.doUtils = downloadutils.DownloadUtils().downloadUrl
     self.xbmcplayer = Player()
     self.playqueue = self.mgr.playqueue
     Monitor.__init__(self)
     log.info("Kodi monitor started.")
Ejemplo n.º 6
0
 def __init__(self, container, sop_url, localport, playerport):
     Monitor.__init__(self)
     self.player = SopCastPlayer()
     self.container = container
     self.localport = localport
     self.playerport = playerport
     self.sop_url = sop_url
     self.image = "sopcast_{0}".format(self.playerport)
     self.running = False
Ejemplo n.º 7
0
 def __init__(self):
     ''' VRT Monitor initialisiation '''
     self._resumepoints = ResumePoints()
     self._container = None
     self._playerinfo = None
     self._favorites = None
     self._apihelper = None
     self.init_watching_activity()
     Monitor.__init__(self)
Ejemplo n.º 8
0
    def __init__(self, player):
        from xbmcaddon import Addon

        self.player = player
        self.last_tracked_position = None
        self.last_played_file = None
        self.asset_id = None
        self.duration = None
        self.start_tracking = False
        self.addon_path = 'plugin://' + Addon().getAddonInfo('id')
        xbmc_helper().set_addon(Addon())
        xbmc_Monitor.__init__(self)
Ejemplo n.º 9
0
 def __init__(self, engine, env, sop_url, localport, playerport):
     Monitor.__init__(self)
     self.player = SopCastPlayer()
     self.env = env
     if type(engine) == list:
         self.engine = engine
     else:
         self.engine = [engine]
     self.localport = localport
     self.playerport = playerport
     self.sop_url = sop_url
     self.running = False
Ejemplo n.º 10
0
 def __init__(self, engine, env, tvbus_url, access_code, localport,
              playerport):
     Monitor.__init__(self)
     self.player = TvbusPlayer()
     self.env = env
     if type(engine) == list:
         self.engine = engine
     else:
         self.engine = [engine]
     self.localport = localport
     self.playerport = playerport
     self.tvbus_url = tvbus_url
     self.access_code = access_code
     self.running = False
Ejemplo n.º 11
0
 def __init__(self):
     Monitor.__init__(self)
     self.player = GslugPlayer()
Ejemplo n.º 12
0
 def __init__(self):
     Monitor.__init__(self)
     self.update_interval = 24 * 3600
Ejemplo n.º 13
0
 def __init__(self):
     """Constructor for Monitor"""
     self.player = UpNextPlayer()
     self.api = Api()
     self.playback_manager = PlaybackManager()
     Monitor.__init__(self)
Ejemplo n.º 14
0
 def __init__(self):
     self.player = MyPlayer()
     Monitor.__init__(self)
Ejemplo n.º 15
0
 def __init__(self):
     Monitor.__init__(self)
Ejemplo n.º 16
0
 def __init__(self):
     Monitor.__init__(self)
     self.kodi = KodiWrapper()
     self.vtm_go = VtmGo(self.kodi)
     self.update_interval = 24 * 3600  # Every 24 hours
Ejemplo n.º 17
0
 def __init__(self):
     Monitor.__init__(self)
     self._player = PlayerMonitor()
     self._proxy_thread = None
     self.update_interval = 24 * 3600  # Every 24 hours
     self.cache_expiry = 30 * 24 * 3600  # One month
Ejemplo n.º 18
0
 def __init__(self):
     self._closing = threading.Event()
     self._reboot = False
     Monitor.__init__(self)
Ejemplo n.º 19
0
 def __init__(self):
     Monitor.__init__(self)
     self._restart_required = False
Ejemplo n.º 20
0
 def __init__(self):
     Monitor.__init__(self)
     self.update_interval = 24 * 3600  # Every 24 hours
     self.cache_expiry = 30 * 24 * 3600  # One month