Exemple #1
0
 def downloadFinished(self, status):
     if status != DMHelper.STS.DOWNLOADED:
         self["console"].setText(_("Download failed.\nStatus[%s]") % status)
     else:
         self["console"].setText(_('Subtitles downloaded successfully. [%s], conversion to UTF-8.') % self.downloader.getFullFileName())
         cmd = '%s "%s"' % (config.plugins.iptvplayer.uchardetpath.value, self.downloader.getFullFileName()) 
         printDBG("cmd[%s]" % cmd)
         self.workconsole = iptv_system(cmd, self.convertSubtitles)
Exemple #2
0
 def reportHostCrash(self, ret):
     try:
         if ret:
             try:
                 exceptStack = self.workThread.getExceptStack()
                 reporter = GetPluginDir('iptvdm/reporthostcrash.py')
                 msg = urllib_quote(
                     '%s|%s|%s|%s' %
                     ('HOST_CRASH', IPTVSubDownloaderWidget.IPTV_VERSION,
                      self.hostName, self.getCategoryPath()))
                 self.crashConsole = iptv_system(
                     'python "%s" "http://iptvplayer.vline.pl/reporthostcrash.php?msg=%s" "%s" 2&>1 > /dev/null'
                     % (reporter, msg, exceptStack))
                 printDBG(msg)
             except Exception:
                 printExc()
         self.workThread = None
         self.prevSelList = []
         self.back_pressed()
     except Exception:
         printExc()
 def _isWgetWorkingCorrectly(self, callBackFun):
     self.iptv_sys = iptv_system(
         DMHelper.GET_WGET_PATH() + " -V 2>&1 ",
         boundFunction(self._checkWgetWorkingCallBack, callBackFun))
 def isWorkingCorrectly(self, callBackFun):
     self.iptv_sys = iptv_system(
         DMHelper.GET_F4M_PATH() + " 2>&1 ",
         boundFunction(self._checkWorkingCallBack, callBackFun))
Exemple #5
0
 def _system(self, session, cmd):
     printDBG(
         "iptv_execute._system: Here we must be in main thread context: [%s]"
         % threading.current_thread())
     self.iptv_system = iptv_system(cmd, self._callBack)
     return iptv_execute.WAIT_RET
Exemple #6
0
 def isWorkingCorrectly(self, callBackFun):
     self.iptv_sys = iptv_system(
         "wget 2>&1 ", boundFunction(self._checkWorkingCallBack,
                                     callBackFun))