コード例 #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
コード例 #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
コード例 #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
コード例 #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