Ejemplo n.º 1
0
 def getFilenameAndPath():
     if SourceDetails.filenameAndPath is None:
         extrasDirName = Settings.getExtrasDirName()
         if (extrasDirName is None) or (extrasDirName == ""):
             extrasDirName = "Extras"
         SourceDetails.filenameAndPath = "%s%s" % (xbmc.getInfoLabel("ListItem.FilenameAndPath"), extrasDirName)
     return SourceDetails.filenameAndPath
Ejemplo n.º 2
0
 def getFilenameAndPath():
     if SourceDetails.filenameAndPath is None:
         extrasDirName = Settings.getExtrasDirName()
         if (extrasDirName is None) or (extrasDirName == ""):
             extrasDirName = "Extras"
         SourceDetails.filenameAndPath = "%s%s" % (
             xbmc.getInfoLabel("ListItem.FilenameAndPath"), extrasDirName)
     return SourceDetails.filenameAndPath
Ejemplo n.º 3
0
    def _getNewSettingsXml(self):
        regexSection = ''
        # Put together the regex section details
        extrasTag = Settings.getExtrasFileTag()
        if extrasTag != "":
            log("Setting Tag Name to: %s" % extrasTag)
            regexSection = AdvSettings.REGEX_SECTION.format(extrasTag)
        # Check what the directory name is
        extrasDir = Settings.getExtrasDirName()
        log("Setting Directory Name to: %s" % extrasDir)
        regexSection += AdvSettings.REGEX_SECTION.format('/' + extrasDir + '/')
        regexSection += AdvSettings.REGEX_SECTION.format('[\\\\\\/]' + extrasDir + '[\\\\\\/]')

        # Now put together the ignore section
        ignoreSection = AdvSettings.IGNORE_SECTION.format(regexSection)
        return ignoreSection
Ejemplo n.º 4
0
    def _getNewSettingsXml(self):
        regexSection = ''
        # Put together the regex section details
        extrasTag = Settings.getExtrasFileTag()
        if extrasTag != "":
            log("Setting Tag Name to: %s" % extrasTag)
            regexSection = AdvSettings.REGEX_SECTION.format(extrasTag)
        # Check what the directory name is
        extrasDir = Settings.getExtrasDirName()
        log("Setting Directory Name to: %s" % extrasDir)
        regexSection += AdvSettings.REGEX_SECTION.format('/' + extrasDir + '/')
        regexSection += AdvSettings.REGEX_SECTION.format('[\\\\\\/]' +
                                                         extrasDir +
                                                         '[\\\\\\/]')

        # Now put together the ignore section
        ignoreSection = AdvSettings.IGNORE_SECTION.format(regexSection)
        return ignoreSection