def keyOK(self):
       if self["config"].instance is None:
           return
       if self.reorderingEnabled:
           if not self.reorderingMode:
               self["config"].instance.setForegroundColorSelected(gRGB(0xFF0505))
               self.reorderingMode = True
           else:
               self["config"].instance.setForegroundColorSelected(gRGB(0xFFFFFF))
               self.reorderingMode = False
           self.runSetup()
           return
 
       curIndex = self["config"].getCurrentIndex()
       currItem = self["config"].list[curIndex][1]
       if curIndex < len(self.listOfHostsNames):
           hostName = self.listOfHostsNames[curIndex]
           if self.hostsConfigsAvailableList[curIndex] and IsHostEnabled(hostName):
               addConf = False
               try:
                   self.host = __import__('Plugins.Extensions.IPTVPlayer.hosts.host' + hostName, globals(), locals(), ['GetConfigList'], -1)
                   if( len(self.host.GetConfigList()) < 1 ):
                       printDBG('ConfigMenu host "%s" does not have additional configs' % hostName)
                   else:
                       self.session.open(ConfigHostMenu, hostName = hostName)
                       addConf = True
               except:
                   printExc('ConfigMenu host "%s" does not have method GetConfigList' % hostName)
               if not addConf:
                   self.hostsConfigsAvailableList[curIndex] = False
                   self.onSelectionChanged()
                   self.session.open(MessageBox, _("Service [%s] has no additional settings.") % hostName, type=MessageBox.TYPE_INFO, timeout=5)
       else:
           ConfigBaseWidget.keyOK(self)
 def __init__(self, session, operatingPlayer=False):
     printDBG("ConfigExtMoviePlayer.__init__ -------------------------------")
     self.list = [ ]
     ConfigBaseWidget.__init__(self, session)
     ConfigExtMoviePlayerBase.__init__(self)
     self.setup_title = _("Configuring an external movie player")
     self.operatingPlayer = operatingPlayer
 def __init__(self, session, hostName):
     printDBG("ConfigHostMenu.__init__ -------------------------------")
     self.list = [ ]
     self.hostName = hostName
     ConfigBaseWidget.__init__(self, session)
     self.setup_title = _("Configuration for service[%s]") % self.hostName
     self.host = __import__('Plugins.Extensions.IPTVPlayer.hosts.host' + hostName, globals(), locals(), ['GetConfigList'], -1)
Example #4
0
 def keyDown(self):
     if self.reorderingMode:
         printDBG(">>>>>>>>>>>>>>>>>>> keyDown")
         curIndex = self["config"].getCurrentIndex()
         ConfigBaseWidget.keyDown(self)
         self._moveItem(curIndex)
     else:
         ConfigBaseWidget.keyDown(self)
 def onSelectionChanged(self):
     currItem = self["config"].getCurrent()[1]
     if currItem in [config.plugins.iptvplayer.fakePin, config.plugins.iptvplayer.fakeUpdate, config.plugins.iptvplayer.fakeHostsList]:
         self.isOkEnabled  = True
         self.isSelectable = False 
         self.setOKLabel()
     else:
         ConfigBaseWidget.onSelectionChanged(self)
 def __init__(self, session, operatingPlayer=False):
     printDBG("ConfigExtMoviePlayer.__init__ -------------------------------")
     self.list = [ ]
     ConfigBaseWidget.__init__(self, session)
     ConfigExtMoviePlayerBase.__init__(self)
     self.setup_title = _("Configuring an external movie player")
     self.operatingPlayer = operatingPlayer
     self.runtimeOptionsValues = self.getRuntimeOptionsValues()
 def __init__(self, session):
     printDBG("ConfigMenu.__init__ -------------------------------")
     self.list = [ ]
     ConfigBaseWidget.__init__(self, session)
     # remember old
     self.showcoverOld = config.plugins.iptvplayer.showcover.value
     self.SciezkaCacheOld = config.plugins.iptvplayer.SciezkaCache.value
     self.platformOld = config.plugins.iptvplayer.plarform.value
 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)
Example #9
0
    def __init__(self, session):
        printDBG("ConfigGroupsMenu.__init__ -------------------------------")
        self.list = []
        self.inList = []
        self.groupObj = IPTVHostsGroups()

        ConfigBaseWidget.__init__(self, session)
        self.setup_title = _("IPTVPlayer enable/disabled groups")
        self.__preparLists()
Example #10
0
 def __init__(self, session, hostName):
     printDBG("ConfigHostMenu.__init__ -------------------------------")
     self.list = []
     self.hostName = hostName
     ConfigBaseWidget.__init__(self, session)
     self.setup_title = _("Configuration for service[%s]") % self.hostName
     self.host = __import__(
         'Plugins.Extensions.IPTVPlayer.hosts.host' + hostName, globals(),
         locals(), ['GetConfigList'], -1)
Example #11
0
 def __init__(self, session):
     printDBG("ConfigMenu.__init__ -------------------------------")
     self.list = [ ]
     ConfigBaseWidget.__init__(self, session)
     # remember old
     self.showcoverOld = config.plugins.iptvplayer.showcover.value
     self.SciezkaCacheOld = config.plugins.iptvplayer.SciezkaCache.value
     self.remove_diabled_hostsOld = config.plugins.iptvplayer.remove_diabled_hosts.value
     self.enabledHostsListOld = GetEnabledHostsList()
 def __init__(self, session):
     printDBG("ConfigMenu.__init__ -------------------------------")
     self.list = [ ]
     ConfigBaseWidget.__init__(self, session)
     # remember old
     self.showcoverOld = config.plugins.iptvplayer.showcover.value
     self.SciezkaCacheOld = config.plugins.iptvplayer.SciezkaCache.value
     self.platformOld = config.plugins.iptvplayer.plarform.value
     self.remove_diabled_hostsOld = config.plugins.iptvplayer.remove_diabled_hosts.value
     self.enabledHostsListOld = GetEnabledHostsList()
 def runSetup(self):
     list = []
     
     list.append(getConfigListEntry(_("Remember last watched position"), config.plugins.iptvplayer.remember_last_position))
     if not self.operatingPlayer:
         list.append(getConfigListEntry(_("External player use software decoder for the AAC"), config.plugins.iptvplayer.aac_software_decode))
         if self.ac3_mix_avaliable:
             list.append(getConfigListEntry(_("AC3 mix mode"), config.plugins.iptvplayer.ac3_mix))
         if self.aac_mix_avaliable:
             list.append(getConfigListEntry(_("AAC mix mode"), config.plugins.iptvplayer.aac_mix))
         
     list.append(getConfigListEntry(_("External player infobar timeout"), config.plugins.iptvplayer.extplayer_infobar_timeout))
     
     if self.aspect_avaliable:
         list.append(getConfigListEntry(_("Default video aspect ratio"), config.plugins.iptvplayer.extplayer_aspect) )
     if self.policy_avaliable:
         list.append(getConfigListEntry(_("Default video policy"), config.plugins.iptvplayer.extplayer_policy) )
     if self.policy2_avaliable:
         list.append(getConfigListEntry(_("Default second video policy"), config.plugins.iptvplayer.extplayer_policy2) )
     
     list.append(getConfigListEntry(_("Load automatically the subtitle from file with the same name"), config.plugins.iptvplayer.extplayer_subtitle_auto_enable) )
     if not self.operatingPlayer:
         list.append(getConfigListEntry(_("Subtitle line wrapping"), config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled) )
     list.append(getConfigListEntry(_("Subtitle font"), config.plugins.iptvplayer.extplayer_subtitle_font) )
     list.append(getConfigListEntry(_("Subtitle font size"), config.plugins.iptvplayer.extplayer_subtitle_font_size) )
     if not config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
         list.append(getConfigListEntry(_("Line Spacing"), config.plugins.iptvplayer.extplayer_subtitle_line_spacing) )
     elif 'transparent' != config.plugins.iptvplayer.extplayer_subtitle_background.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
     
     list.append(getConfigListEntry(_("Subtitle font color"), config.plugins.iptvplayer.extplayer_subtitle_font_color) )
     list.append(getConfigListEntry(_("Subtitle background"), config.plugins.iptvplayer.extplayer_subtitle_background) )
     
     list.append(getConfigListEntry(_("Subtitle box position"), config.plugins.iptvplayer.extplayer_subtitle_pos) )
     if config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         if 'transparent' == config.plugins.iptvplayer.extplayer_subtitle_background.value:
             list.append(getConfigListEntry(_("Subtitle box height"), config.plugins.iptvplayer.extplayer_subtitle_box_height) )
             list.append(getConfigListEntry(_("Subtitle vertical alignment"), config.plugins.iptvplayer.extplayer_subtitle_box_valign) )
     
     if self.subtitle_border_avaliable:
         list.append(getConfigListEntry(_("Subtitle border enabled"), config.plugins.iptvplayer.extplayer_subtitle_border_enabled) )
         if config.plugins.iptvplayer.extplayer_subtitle_border_enabled.value:
             list.append(getConfigListEntry(_("Subtitle border color"), config.plugins.iptvplayer.extplayer_subtitle_border_color) )
             list.append(getConfigListEntry(_("Subtitle border width"), config.plugins.iptvplayer.extplayer_subtitle_border_width) )
             
     list.append(getConfigListEntry(_("Subtitle shadow enabled"), config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled) )
     if config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled.value:
         list.append(getConfigListEntry(_("Subtitle shadow color"), config.plugins.iptvplayer.extplayer_subtitle_shadow_color) )
         list.append(getConfigListEntry(_("Subtitle shadow X offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_xoffset) )
         list.append(getConfigListEntry(_("Subtitle shadow Y offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_yoffset) )
     
     self.list = list
     ConfigBaseWidget.runSetup(self)
Example #14
0
    def __init__(self, session, listOfHostsNames):
        printDBG("ConfigHostsMenu.__init__ -------------------------------")
        self.list = []
        self.hostsConfigsAvailableList = []
        self.listOfHostsNames = []
        self.orgListOfHostsNames = SortHostsList(listOfHostsNames)
        ConfigBaseWidget.__init__(self, session)
        self.setup_title = _("Services configuration")
        self.__preparHostsConfigs(self.orgListOfHostsNames)

        self.reorderingEnabled = False
        self.reorderingMode = False
 def onSelectionChanged(self):
     currItem = self["config"].getCurrent()[1]
     if currItem in [
             config.plugins.iptvplayer.fakePin,
             config.plugins.iptvplayer.fakeUpdate,
             config.plugins.iptvplayer.fakeHostsList
     ]:
         self.isOkEnabled = True
         self.isSelectable = False
         self.setOKLabel()
     else:
         ConfigBaseWidget.onSelectionChanged(self)
 def __init__(self, session, listOfHostsNames):
     printDBG("ConfigHostsMenu.__init__ -------------------------------")
     self.list = []
     self.privacePoliceWorningList = []
     self.hostsConfigsAvailableList = []
     self.listOfHostsNames = []
     self.orgListOfHostsNames = SortHostsList(listOfHostsNames)
     ConfigBaseWidget.__init__(self, session)
     self.setup_title = _("Services configuration")
     self.__preparHostsConfigs(self.orgListOfHostsNames)
     
     self.reorderingEnabled = False
     self.reorderingMode = False
Example #17
0
 def keyOK(self):
     curIndex = self["config"].getCurrentIndex()
     currItem = self["config"].list[curIndex][1]
     if isinstance(currItem, ConfigDirectory):
         def SetDirPathCallBack(curIndex, newPath):
             if None != newPath: self["config"].list[curIndex][1].value = newPath
         self.session.openWithCallback(boundFunction(SetDirPathCallBack, curIndex), IPTVDirectorySelectorWidget, currDir=currItem.value, title="Wybierz katalog")
     elif config.plugins.iptvplayer.fakePin == currItem:
         self.changePin(start = True)
     elif config.plugins.iptvplayer.fakeUpdate == currItem:
         self.keyUpdate()
     elif config.plugins.iptvplayer.fakeHostsList == currItem:
         self.hostsList()
     else:
         ConfigBaseWidget.keyOK(self)
 def keyOK(self):
     curIndex = self["config"].getCurrentIndex()
     currItem = self["config"].list[curIndex][1]
     if isinstance(currItem, ConfigDirectory):
         def SetDirPathCallBack(curIndex, newPath):
             if None != newPath: self["config"].list[curIndex][1].value = newPath
         self.session.openWithCallback(boundFunction(SetDirPathCallBack, curIndex), IPTVDirectorySelectorWidget, currDir=currItem.value, title="Wybierz katalog")
     elif config.plugins.iptvplayer.fakePin == currItem:
         self.changePin(start = True)
     elif config.plugins.iptvplayer.fakeUpdate == currItem:
         self.keyUpdate()
     elif config.plugins.iptvplayer.fakeHostsList == currItem:
         self.hostsList()
     else:
         ConfigBaseWidget.keyOK(self)
Example #19
0
    def keyOK(self):
        if self["config"].instance is None:
            return
        if self.reorderingEnabled:
            if not self.reorderingMode:
                self["config"].instance.setForegroundColorSelected(
                    gRGB(0xFF0505))
                self.reorderingMode = True
            else:
                self["config"].instance.setForegroundColorSelected(
                    gRGB(0xFFFFFF))
                self.reorderingMode = False
            self.runSetup()
            return

        curIndex = self["config"].getCurrentIndex()
        currItem = self["config"].list[curIndex][1]
        if curIndex < len(self.listOfHostsNames):
            hostName = self.listOfHostsNames[curIndex]
            if self.hostsConfigsAvailableList[curIndex] and IsHostEnabled(
                    hostName):
                addConf = False
                try:
                    self.host = __import__(
                        'Plugins.Extensions.IPTVPlayer.hosts.host' + hostName,
                        globals(), locals(), ['GetConfigList'], -1)
                    if (len(self.host.GetConfigList()) < 1):
                        printDBG(
                            'ConfigMenu host "%s" does not have additional configs'
                            % hostName)
                    else:
                        self.session.open(ConfigHostMenu, hostName=hostName)
                        addConf = True
                except:
                    printExc(
                        'ConfigMenu host "%s" does not have method GetConfigList'
                        % hostName)
                if not addConf:
                    self.hostsConfigsAvailableList[curIndex] = False
                    self.onSelectionChanged()
                    self.session.open(
                        MessageBox,
                        _("Service [%s] has no additional settings.") %
                        hostName,
                        type=MessageBox.TYPE_INFO,
                        timeout=5)
        else:
            ConfigBaseWidget.keyOK(self)
Example #20
0
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle(_("E2iPlayer - settings"))
Example #21
0
 def save(self):
     ConfigBaseWidget.save(self)
     if self.showcoverOld != config.plugins.iptvplayer.showcover.value or \
        self.SciezkaCacheOld != config.plugins.iptvplayer.SciezkaCache.value:
        pass
 def keyRight(self):
     if not self.reorderingEnabled:
         ConfigBaseWidget.keyRight(self)
 def keyUp(self):
     if self.reorderingMode:
         printDBG(">>>>>>>>>>>>>>>>>>> keyUp")
         self._moveItem(-1)
     ConfigBaseWidget.keyUp(self)
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle("IPTV Player " + (_("[%s] - configuration") % self.hostName))
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle("IPTV Player - ustawienia")
Example #26
0
 def setOKLabel(self):
     if self.reorderingEnabled:
         self["key_ok"].setText(_("OK"))
     else:
         ConfigBaseWidget.setOKLabel(self)
Example #27
0
 def __onClose(self):
     printDBG("ConfigHostsMenu.__onClose ")
     ConfigBaseWidget.__onClose(self)
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle("IPTV Player " + (_("Configuring an external movie player")))
 def isChanged(self):
     if self.orgListOfHostsNames != self.listOfHostsNames:
         return True
     return ConfigBaseWidget.isChanged(self)
 def __onClose(self):
     printDBG("ConfigExtMoviePlayer.__onClose -----------------------------")
     ConfigBaseWidget.__onClose(self)
 def saveOrCancel(self, operation="save"):
     if "save" == operation:
         if self.orgListOfHostsNames != self.listOfHostsNames:
             SaveHostsOrderList(self.listOfHostsNames)
     ConfigBaseWidget.saveOrCancel(self, operation)
Example #32
0
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle(_("%s services configuration") % ('E2iPlayer'))
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle("E2iPlayer " + (_("Configuring an external movie player")))
Example #34
0
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle(self.setup_title)
 def runSetup(self):
     list = []
     list.append(getConfigListEntry(_("show iframe for audio item"), config.plugins.iptvplayer.show_iframe))
     if config.plugins.iptvplayer.show_iframe.value:
         list.append(getConfigListEntry("    " + _("Iframe file"), config.plugins.iptvplayer.iframe_file))
         if 'sh4' != config.plugins.iptvplayer.plarform.value:
             list.append(getConfigListEntry("    " + _("Clear iframe file"), config.plugins.iptvplayer.clear_iframe_file))
     
     list.append(getConfigListEntry(_("Remember last watched position"), config.plugins.iptvplayer.remember_last_position))
     if 1:#IsExecutable(config.plugins.iptvplayer.exteplayer3path.value):
         list.append(getConfigListEntry(_("----------------- External exteplayer3 options -----------------"), config.plugins.iptvplayer.fakeExtePlayer3))
         list.append(getConfigListEntry("    " + _("External player use software decoder for the AAC"), config.plugins.iptvplayer.aac_software_decode))
         if config.plugins.iptvplayer.plarform.value in ['mipsel', 'armv7', 'armv5t', 'i686']:
             list.append(getConfigListEntry("    " + _("External player use software decoder for the DTS"), config.plugins.iptvplayer.dts_software_decode))
             list.append(getConfigListEntry("    " + _("External player use software decoder for the WMA"), config.plugins.iptvplayer.wma_software_decode))
             list.append(getConfigListEntry("    " + _("Software decoding as"), config.plugins.iptvplayer.software_decode_as))
             list.append(getConfigListEntry("    " + _("Stereo downmix mode for software decoder"), config.plugins.iptvplayer.stereo_software_decode))
     if self.ac3_mix_avaliable:
         list.append(getConfigListEntry(_("AC3 mix mode"), config.plugins.iptvplayer.ac3_mix))
     if self.aac_mix_avaliable:
         list.append(getConfigListEntry(_("AAC mix mode"), config.plugins.iptvplayer.aac_mix))
         
     list.append(getConfigListEntry(_("External player infobar timeout"), config.plugins.iptvplayer.extplayer_infobar_timeout))
     
     if self.aspect_avaliable:
         list.append(getConfigListEntry(_("Default video aspect ratio"), config.plugins.iptvplayer.extplayer_aspect) )
     if self.policy_avaliable:
         list.append(getConfigListEntry(_("Default video policy"), config.plugins.iptvplayer.extplayer_policy) )
     if self.policy2_avaliable:
         list.append(getConfigListEntry(_("Default second video policy"), config.plugins.iptvplayer.extplayer_policy2) )
     
     list.append(getConfigListEntry(_("Load automatically the subtitle from file with the same name"), config.plugins.iptvplayer.extplayer_subtitle_auto_enable) )
     list.append(getConfigListEntry(_("Subtitle line wrapping"), config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled) )
     list.append(getConfigListEntry(_("Subtitle font"), config.plugins.iptvplayer.extplayer_subtitle_font) )
     list.append(getConfigListEntry(_("Subtitle font size"), config.plugins.iptvplayer.extplayer_subtitle_font_size) )
     if not config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
         list.append(getConfigListEntry(_("Line Spacing"), config.plugins.iptvplayer.extplayer_subtitle_line_spacing) )
     elif 'transparent' != config.plugins.iptvplayer.extplayer_subtitle_background.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
     
     list.append(getConfigListEntry(_("Subtitle font color"), config.plugins.iptvplayer.extplayer_subtitle_font_color) )
     list.append(getConfigListEntry(_("Subtitle background"), config.plugins.iptvplayer.extplayer_subtitle_background) )
     
     list.append(getConfigListEntry(_("Subtitle box position"), config.plugins.iptvplayer.extplayer_subtitle_pos) )
     if config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         if 'transparent' == config.plugins.iptvplayer.extplayer_subtitle_background.value:
             list.append(getConfigListEntry(_("Subtitle box height"), config.plugins.iptvplayer.extplayer_subtitle_box_height) )
             list.append(getConfigListEntry(_("Subtitle vertical alignment"), config.plugins.iptvplayer.extplayer_subtitle_box_valign) )
     
     if self.subtitle_border_avaliable:
         list.append(getConfigListEntry(_("Subtitle border enabled"), config.plugins.iptvplayer.extplayer_subtitle_border_enabled) )
         if config.plugins.iptvplayer.extplayer_subtitle_border_enabled.value:
             list.append(getConfigListEntry(_("Subtitle border color"), config.plugins.iptvplayer.extplayer_subtitle_border_color) )
             list.append(getConfigListEntry(_("Subtitle border width"), config.plugins.iptvplayer.extplayer_subtitle_border_width) )
             
     list.append(getConfigListEntry(_("Subtitle shadow enabled"), config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled) )
     if config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled.value:
         list.append(getConfigListEntry(_("Subtitle shadow color"), config.plugins.iptvplayer.extplayer_subtitle_shadow_color) )
         list.append(getConfigListEntry(_("Subtitle shadow X offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_xoffset) )
         list.append(getConfigListEntry(_("Subtitle shadow Y offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_yoffset) )
     
     self.list = list
     ConfigBaseWidget.runSetup(self)
 def runSetup(self):
     ConfigBaseWidget.runSetup(self)
Example #37
0
 def saveOrCancel(self, operation="save"):
     if "save" == operation:
         if self.orgListOfHostsNames != self.listOfHostsNames:
             SaveHostsOrderList(self.listOfHostsNames)
     ConfigBaseWidget.saveOrCancel(self, operation)
Example #38
0
 def keyDown(self):
     if self.reorderingMode:
         printDBG(">>>>>>>>>>>>>>>>>>> keyDown")
         self._moveItem(1)
     ConfigBaseWidget.keyDown(self)
 def __onClose(self):
     printDBG("ConfigMenu.__onClose -----------------------------")
     ConfigBaseWidget.__onClose(self)
Example #40
0
 def keyRight(self):
     if not self.reorderingEnabled:
         ConfigBaseWidget.keyRight(self)
 def runSetup(self):
     self.list = []
     ConfigMenu.fillConfigList(self.list, self.isHiddenOptionsUnlocked())
     ConfigBaseWidget.runSetup(self)
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle(_("IPTVPlayer services configuration"))
 def keyDown(self):
     if self.reorderingMode:
         printDBG(">>>>>>>>>>>>>>>>>>> keyDown")
         self._moveItem(1)
     ConfigBaseWidget.keyDown(self)
Example #44
0
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle("IPTV Player " +
                   (_("[%s] - configuration") % self.hostName))
 def setOKLabel(self):
     if self.reorderingEnabled:
         self["key_ok"].setText(_("OK"))
     else:
         ConfigBaseWidget.setOKLabel(self)
Example #46
0
 def runSetup(self):
     self.list = self.host.GetConfigList()
     ConfigBaseWidget.runSetup(self)
Example #47
0
 def runSetup(self):
     self.list = []
     ConfigMenu.fillConfigList(self.list, self.isHiddenOptionsUnlocked())
     ConfigBaseWidget.runSetup(self)
 def runSetup(self):
     self.list = self.host.GetConfigList()
     ConfigBaseWidget.runSetup(self)
 def __onClose(self):
     printDBG("ConfigExtMoviePlayer.__onClose -----------------------------")
     ConfigBaseWidget.__onClose(self)
Example #50
0
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle(_("IPTVPlayer services configuration"))
 def runSetup(self):
     list = []
     
     list.append(getConfigListEntry(_("Remember last watched position"), config.plugins.iptvplayer.remember_last_position))
     if config.plugins.iptvplayer.remember_last_position.value:
         list.append(getConfigListEntry("    " + _("Skip video shorter than [min]"), config.plugins.iptvplayer.remember_last_position_time))
     if getDesktop(0).size().width() >= 800:
         list.append(getConfigListEntry(_("Info bar clock format"), config.plugins.iptvplayer.extplayer_infobanner_clockformat))
     list.append(getConfigListEntry(_("Create LCD/VFD summary screen"), config.plugins.iptvplayer.extplayer_summary))
     list.append(getConfigListEntry(_("----------------- External exteplayer3 options -----------------"), config.plugins.iptvplayer.fakeExtePlayer3))
     list.append(getConfigListEntry("    " + _("RAM buffer size [MB] for network protocols"), config.plugins.iptvplayer.rambuffer_sizemb_network_proto))
     list.append(getConfigListEntry("    " + _("RAM buffer size [MB] for local files"), config.plugins.iptvplayer.rambuffer_sizemb_files))
     list.append(getConfigListEntry("    " + _("Use software decoder for the %s") % 'AAC', config.plugins.iptvplayer.aac_software_decode))
     list.append(getConfigListEntry("    " + _("Use software decoder for the %s") % 'AC3', config.plugins.iptvplayer.ac3_software_decode))
     list.append(getConfigListEntry("    " + _("Use software decoder for the %s") % 'EAC3', config.plugins.iptvplayer.eac3_software_decode))
     list.append(getConfigListEntry("    " + _("Use software decoder for the %s") % 'DTS', config.plugins.iptvplayer.dts_software_decode))
     list.append(getConfigListEntry("    " + _("Use software decoder for the %s") % 'WMA', config.plugins.iptvplayer.wma_software_decode))
     list.append(getConfigListEntry("    " + _("Use software decoder for the %s") % 'MP3', config.plugins.iptvplayer.mp3_software_decode))
     if getImageArch() != "sh4":
         list.append(getConfigListEntry("    " + _("Software decoding as"), config.plugins.iptvplayer.software_decode_as))
     list.append(getConfigListEntry("    " + _("Stereo downmix mode for software decoder"), config.plugins.iptvplayer.stereo_software_decode))
     if self.ac3_mix_avaliable:
         list.append(getConfigListEntry(_("AC3 downmix mode"), config.plugins.iptvplayer.ac3_mix))
     if self.aac_mix_avaliable:
         list.append(getConfigListEntry(_("AAC downmix mode"), config.plugins.iptvplayer.aac_mix))
         
     list.append(getConfigListEntry(_("Info bar timeout"), config.plugins.iptvplayer.extplayer_infobar_timeout))
     
     if self.aspect_avaliable:
         list.append(getConfigListEntry(_("Default video aspect ratio"), config.plugins.iptvplayer.extplayer_aspect) )
     if self.policy_avaliable:
         list.append(getConfigListEntry(_("Default video policy for 16:9"), config.plugins.iptvplayer.extplayer_policy) )
     if self.policy2_avaliable:
         list.append(getConfigListEntry(_("Default video policy for 4:3"), config.plugins.iptvplayer.extplayer_policy2) )
     
     list.append(getConfigListEntry(_("Automatically turn on external subtitles"), config.plugins.iptvplayer.extplayer_subtitle_auto_enable) )
     list.append(getConfigListEntry(_("Subtitle line wrapping"), config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled) )
     list.append(getConfigListEntry(_("Subtitle font"), config.plugins.iptvplayer.extplayer_subtitle_font) )
     list.append(getConfigListEntry(_("Subtitle font size"), config.plugins.iptvplayer.extplayer_subtitle_font_size) )
     if not config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
         list.append(getConfigListEntry(_("Line Spacing"), config.plugins.iptvplayer.extplayer_subtitle_line_spacing) )
     elif 'transparent' != config.plugins.iptvplayer.extplayer_subtitle_background.value:
         list.append(getConfigListEntry(_("Subtitle line height"), config.plugins.iptvplayer.extplayer_subtitle_line_height) )
     
     list.append(getConfigListEntry(_("Subtitle font color"), config.plugins.iptvplayer.extplayer_subtitle_font_color) )
     list.append(getConfigListEntry(_("Subtitle background"), config.plugins.iptvplayer.extplayer_subtitle_background) )
     
     list.append(getConfigListEntry(_("Subtitle box position"), config.plugins.iptvplayer.extplayer_subtitle_pos) )
     if config.plugins.iptvplayer.extplayer_subtitle_wrapping_enabled.value:
         if 'transparent' == config.plugins.iptvplayer.extplayer_subtitle_background.value:
             list.append(getConfigListEntry(_("Subtitle box height"), config.plugins.iptvplayer.extplayer_subtitle_box_height) )
             list.append(getConfigListEntry(_("Subtitle vertical alignment"), config.plugins.iptvplayer.extplayer_subtitle_box_valign) )
     
     if self.subtitle_border_avaliable:
         list.append(getConfigListEntry(_("Subtitle border enabled"), config.plugins.iptvplayer.extplayer_subtitle_border_enabled) )
         if config.plugins.iptvplayer.extplayer_subtitle_border_enabled.value:
             list.append(getConfigListEntry(_("Subtitle border color"), config.plugins.iptvplayer.extplayer_subtitle_border_color) )
             list.append(getConfigListEntry(_("Subtitle border width"), config.plugins.iptvplayer.extplayer_subtitle_border_width) )
             
     list.append(getConfigListEntry(_("Subtitle shadow enabled"), config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled) )
     if config.plugins.iptvplayer.extplayer_subtitle_shadow_enabled.value:
         list.append(getConfigListEntry(_("Subtitle shadow color"), config.plugins.iptvplayer.extplayer_subtitle_shadow_color) )
         list.append(getConfigListEntry(_("Subtitle shadow X offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_xoffset) )
         list.append(getConfigListEntry(_("Subtitle shadow Y offset"), config.plugins.iptvplayer.extplayer_subtitle_shadow_yoffset) )
     
     list.append(getConfigListEntry(_("Inject black iframe at video playback finish"), config.plugins.iptvplayer.use_clear_iframe))
     list.append(getConfigListEntry(_("Show iframe during audio playback"), config.plugins.iptvplayer.show_iframe))
     if config.plugins.iptvplayer.show_iframe.value:
         list.append(getConfigListEntry("    " + _("Radio iframe file"), config.plugins.iptvplayer.iframe_file))
     if getImageArch() != "sh4" and (config.plugins.iptvplayer.show_iframe.value or config.plugins.iptvplayer.use_clear_iframe.value):
         list.append(getConfigListEntry("    " + _("Black iframe file"), config.plugins.iptvplayer.clear_iframe_file))
     self.list = list
     ConfigBaseWidget.runSetup(self)
Example #52
0
 def isChanged(self):
     if self.orgListOfHostsNames != self.listOfHostsNames:
         return True
     return ConfigBaseWidget.isChanged(self)
Example #53
0
 def __onClose(self):
     printDBG("ConfigGroupsMenu.__onClose -----------------------------")
     ConfigBaseWidget.__onClose(self)
 def layoutFinished(self):
     ConfigBaseWidget.layoutFinished(self)
     self.setTitle(_("IPTV Player - settings"))
Example #55
0
 def runSetup(self):
     ConfigBaseWidget.runSetup(self)
Example #56
0
 def keyUp(self):
     if self.reorderingMode:
         printDBG(">>>>>>>>>>>>>>>>>>> keyUp")
         self._moveItem(-1)
     ConfigBaseWidget.keyUp(self)