Esempio n. 1
0
 def save(self):
     ConfigBaseWidget.save(self)
     if self.showcoverOld != config.plugins.iptvplayer.showcover.value or \
        self.SciezkaCacheOld != config.plugins.iptvplayer.SciezkaCache.value:
        pass
        # plugin must be restarted if we wont to this options take effect
     if self.platformOld != config.plugins.iptvplayer.plarform.value:
         IPTVPlayerNeedInit(True)
Esempio n. 2
0
def runMain(session, nextFunction=doRunMain):
    wgetpath     = IsExecutable(config.plugins.iptvplayer.wgetpath.value)
    rtmpdumppath = IsExecutable(config.plugins.iptvplayer.rtmpdumppath.value)
    f4mdumppath  = IsExecutable(config.plugins.iptvplayer.f4mdumppath.value)
    platform     = config.plugins.iptvplayer.plarform.value
    if platform in ["auto", "unknown"] or not wgetpath or not rtmpdumppath or not f4mdumppath:
        session.openWithCallback(boundFunction(nextFunction, session), IPTVSetupMainWidget)
    elif IPTVPlayerNeedInit():
        session.openWithCallback(boundFunction(nextFunction, session), IPTVSetupMainWidget, True)
    else:
        nextFunction(session)
Esempio n. 3
0
 def __onClose(self):
     printDBG("IPTVSetupMainWidget.__onClose -----------------------------")
     self.setupImpl.terminate()
     IPTVPlayerNeedInit(False)