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
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
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