def prepareCmd(self, path, start, end): lsdirPath = GetBinDir("lsdir") try: os_chmod(lsdirPath, 0777) except: printExc() if config.plugins.iptvplayer.local_showhiddensdir.value: dWildcards = '[^.]*|.[^.]*|..[^.]*' else: dWildcards = '[^.]*' fWildcards = [] extensions = self.VIDEO_FILE_EXTENSIONS + self.AUDIO_FILES_EXTENSIONS + self.PICTURE_FILES_EXTENSIONS + self.M3U_FILES_EXTENSIONS for ext in extensions: if config.plugins.iptvplayer.local_showhiddensfiles.value: wilcard = '' else: wilcard = '[^.]*' insensitiveExt = '' for l in ext: insensitiveExt += '[%s%s]' % (l.upper(), l.lower()) wilcard += '.' + insensitiveExt fWildcards.append(wilcard) cmd = '%s "%s" rdl rd %d %d "%s" "%s"' % ( lsdirPath, path, start, end, '|'.join(fWildcards), dWildcards) return cmd
def prepareCmd(self): lsdirPath = GetBinDir("lsdir") try: os_chmod(lsdirPath, 0777) except Exception: printExc() cmd = '%s "%s" drl dr' % (lsdirPath, self.currDir) return cmd
def requestRefresh(self): if self.underClosing: return if self.underRefreshing: return self.underRefreshing = True self.tmpList = [] self.tmpData = '' lsdirPath = GetBinDir("lsdir") try: os_chmod(lsdirPath, 0777) except: printExc() cmd = '%s "%s" dl d' % (lsdirPath, self.currDir) printDBG("IPTVDirectorySelectorWidget.requestRefresh cmd[%s]" % cmd) self.console.execute(cmd)
def yellow_pressed(self): if self.iptvclosing: return if not self.underRefreshing: self.underRefreshing = True self.tmpList = [] self.tmpData = '' lsdirPath = GetBinDir("lsdir") try: os_chmod(lsdirPath, 0777) except: printExc() cmd = '%s "%s" rl r' % ( lsdirPath, config.plugins.iptvplayer.NaszaSciezka.value) printDBG("cmd[%s]" % cmd) self.console.execute(E2PrioFix(cmd)) self.localMode = True self.reloadList(True) return
def __init__(self, finished, chooseQuestion, showMessage, setInfo): printDBG("IPTVSetupImpl.__init__ -------------------------------") # callbacks self._finished = finished self._chooseQuestion = chooseQuestion self._showMessage = showMessage self._setInfo = setInfo self.workingObj = None self.stepHelper = None self.termination = False self.tmpDir = GetTmpDir() self.resourceServers = [ "http://iptvplayer.pl/resources/", "http://iptvplayer.vline.pl/resources/" ] self.ffmpegVersion = "" self.gstreamerVersion = "" self.openSSLVersion = "" self.libSSLPath = "" self.supportedPlatforms = ["sh4", "mipsel", "i686", "armv7", "armv5t"] self.platform = "unknown" # wget members self.wgetVersion = 15 # 1.15 self.wgetpaths = [ "wget", "/usr/bin/wget", "/usr/bin/fullwget", GetBinDir("wget", "") ] self._wgetInstallChoiseList = [ (_('Install into the "%s".') % ("/usr/bin/fullwget " + _("recommended")), "/usr/bin/fullwget"), (_('Install into the "%s".') % "IPTVPlayer/bin/wget", GetBinDir("wget", "")), (_('Install into the "%s".') % "/usr/bin/wget", "/usr/bin/wget"), (_("Do not install (not recommended)"), "") ] # rtmpdump members self.rtmpdumpVersion = { 'sh4': '2015', 'mipsel': '2015', 'armv5t': '2015', 'armv7': '2015', 'default': "Compiled by [email protected] 2015-01-11" } #'K-S-V patch' self.rtmpdumppaths = ["/usr/bin/rtmpdump", "rtmpdump"] # f4mdump member self.f4mdumpVersion = 0.80 self.f4mdumppaths = ["/usr/bin/f4mdump", GetBinDir("f4mdump", "")] self._f4mdumpInstallChoiseList = [ (_('Install into the "%s".') % ("/usr/bin/f4mdump (%s)" % _("recommended")), "/usr/bin/f4mdump"), (_('Install into the "%s".') % "IPTVPlayer/bin/f4mdump", GetBinDir("f4mdump", "")), (_("Do not install (not recommended)"), "") ] self._f4mdumpInstallChoiseList2 = [ (_('Install into the "%s".') % ("/usr/bin/f4mdump static libstdc++ (%s)" % _("recommended")), "/usr/bin/f4mdump"), (_('Install into the "%s".') % "IPTVPlayer/bin/f4mdump _static_libstdc++", GetBinDir("f4mdump", "")), (_("Do not install (not recommended)"), "") ] # uchardet member self.uchardetVersion = [ 0, 0, 6 ] #UCHARDET_VERSION_MAJOR, UCHARDET_VERSION_MINOR, UCHARDET_VERSION_REVISION self.uchardetpaths = ["/usr/bin/uchardet", GetBinDir("uchardet", "")] self._uchardetInstallChoiseList = [ (_('Install into the "%s".') % ("/usr/bin/uchardet (%s)" % _("recommended")), "/usr/bin/uchardet"), (_('Install into the "%s".') % "IPTVPlayer/bin/uchardet", GetBinDir("uchardet", "")), (_("Do not install (not recommended)"), "") ] self._uchardetInstallChoiseList2 = [ (_('Install into the "%s".') % ("/usr/bin/uchardet static libstdc++ (%s)" % _("recommended")), "/usr/bin/uchardet"), (_('Install into the "%s".') % "IPTVPlayer/bin/uchardet _static_libstdc++", GetBinDir("uchardet", "")), (_("Do not install (not recommended)"), "") ] # gstplayer self.gstplayerVersion = {'0.10': 20, '1.0': 10021} self.gstplayerpaths = [ "/usr/bin/gstplayer", GetBinDir("gstplayer", "") ] self._gstplayerInstallChoiseList = [ (_('Install into the "%s".') % ("/usr/bin/gstplayer (%s)" % _("recommended")), "/usr/bin/gstplayer"), (_('Install into the "%s".') % "IPTVPlayer/bin/gstplayer", GetBinDir("gstplayer", "")), (_("Do not install (not recommended)"), "") ] # exteplayer3 self.exteplayer3Version = { 'sh4': 33, 'mipsel': 33, 'armv7': 33, 'armv5t': 33 } self.exteplayer3paths = [ "/usr/bin/exteplayer3", GetBinDir("exteplayer3", "") ] self._exteplayer3InstallChoiseList = [ (_('Install into the "%s".') % ("/usr/bin/exteplayer3 (%s)" % _("recommended")), "/usr/bin/exteplayer3"), (_('Install into the "%s".') % "IPTVPlayer/bin/exteplayer3", GetBinDir("exteplayer3", "")), (_("Do not install (not recommended)"), "") ] # flumpegdemux self.flumpegdemuxVersion = "0.10.85" self.flumpegdemuxpaths = [ "/usr/lib/gstreamer-0.10/libgstflumpegdemux.so" ] # gstifdsrc self.gstifdsrcVersion = "1.1.1" self.gstifdsrcPaths = ["/usr/lib/gstreamer-1.0/libgstifdsrc.so"] # subparser self.subparserVersion = 0.4 self.subparserPaths = [ resolveFilename( SCOPE_PLUGINS, 'Extensions/IPTVPlayer/libs/iptvsubparser/_subparser.so') ] self.binaryInstalledSuccessfully = False self.tries = 0
def __init__(self, finished, chooseQuestion, showMessage, setInfo): printDBG("IPTVSetupImpl.__init__ -------------------------------") # callbacks self._finished = finished self._chooseQuestion = chooseQuestion self._showMessage = showMessage self._setInfo = setInfo self.workingObj = None self.stepHelper = None self.termination = False self.tmpDir = GetTmpDir() self.resourceServers = [ "http://iptvplayer.pl/resources/", "http://iptvplayer.vline.pl/resources/" ] self.gstreamerVersion = "" self.openSSLVersion = "" self.supportedPlatforms = ["sh4", "mipsel", "i686"] self.platform = "unknown" # wget members self.wgetVersion = 15 # 1.15 self.wgetpaths = [ "wget", "/usr/bin/wget", "/usr/bin/fullwget", GetBinDir("wget", "") ] self._wgetInstallChoiseList = [ (_('Install into the "%s".') % ("/usr/bin/fullwget " + _("recommended")), "/usr/bin/fullwget"), (_('Install into the "%s".') % "IPTVPlayer/bin/wget", GetBinDir("wget", "")), (_('Install into the "%s".') % "/usr/bin/wget", "/usr/bin/wget"), (_("Do not install (not recommended)"), "") ] # rtmpdump members self.rtmpdumpVersion = "Compiled by [email protected] 2015-01-11" self.rtmpdumppaths = ["/usr/bin/rtmpdump", "rtmpdump"] # f4mdump member self.f4mdumpVersion = "F4MDump v0.32" self.f4mdumppaths = ["/usr/bin/f4mdump", GetBinDir("f4mdump", "")] self._f4mdumpInstallChoiseList = [ (_('Install into the "%s".') % ("/usr/bin/f4mdump (%s)" % _("recommended")), "/usr/bin/f4mdump"), (_('Install into the "%s".') % "IPTVPlayer/bin/f4mdump", GetBinDir("f4mdump", "")), (_("Do not install (not recommended)"), "") ] self._f4mdumpInstallChoiseList2 = [ (_('Install into the "%s".') % ("/usr/bin/f4mdump static libstdc++ (%s)" % _("recommended")), "/usr/bin/f4mdump"), (_('Install into the "%s".') % "IPTVPlayer/bin/f4mdump _static_libstdc++", GetBinDir("f4mdump", "")), (_("Do not install (not recommended)"), "") ] # gstplayer self.gstplayerVersion = 12 self.gstplayerpaths = [ "/usr/bin/gstplayer", GetBinDir("gstplayer", "") ] self._gstplayerInstallChoiseList = [ (_('Install into the "%s".') % ("/usr/bin/gstplayer (%s)" % _("recommended")), "/usr/bin/gstplayer"), (_('Install into the "%s".') % "IPTVPlayer/bin/gstplayer", GetBinDir("gstplayer", "")), (_("Do not install (not recommended)"), "") ] # flumpegdemux self.flumpegdemuxVersion = "0.10.85" #{'i686':199720, 'mipsel':275752, 'sh4':151664} self.flumpegdemuxpaths = [ "/usr/lib/gstreamer-0.10/libgstflumpegdemux.so" ] self.binaryInstalledSuccessfully = False self.tries = 0