本文整理汇总了Python中Core.Universals.getTaggersMachineNames方法的典型用法代码示例。如果您正苦于以下问题:Python Universals.getTaggersMachineNames方法的具体用法?Python Universals.getTaggersMachineNames怎么用?Python Universals.getTaggersMachineNames使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core.Universals
的用法示例。
在下文中一共展示了Universals.getTaggersMachineNames方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getTagger
# 需要导入模块: from Core import Universals [as 别名]
# 或者: from Core.Universals import getTaggersMachineNames [as 别名]
def getTagger(_isAlertIfNotExist=False, _isReloadAgain=False):
global loaddedTagger
try:
if not _isReloadAgain and loaddedTagger is not None:
return loaddedTagger
preferedTaggerModule = uni.MySettings["preferedTaggerModule"]
taggerModule = __import__("Taggers." + preferedTaggerModule, globals(), locals(), ["isAvailable", "Tagger", preferedTaggerModule], 0)
if taggerModule.isAvailable:
loaddedTagger = taggerModule.Tagger()
return loaddedTagger
taggersNames = uni.getTaggersMachineNames()
for tagger in taggersNames:
taggerModule = __import__("Taggers." + tagger, globals(), locals(), ["isAvailable", "Tagger", tagger], 0)
if taggerModule.isAvailable:
uni.setMySetting("preferedTaggerModule", tagger)
loaddedTagger = taggerModule.Tagger()
return loaddedTagger
if _isAlertIfNotExist:
Dialogs.show(translate("Taggers", "You Have Not Any Tagger"),
translate("Taggers", "Not found any tagger in your system. "
"Please install a tagger module. "
"Now supporting only eyeD3 module (python-eyed3)."))
return None
except:
ReportBug.ReportBug()
示例2: getTaggerNames
# 需要导入模块: from Core import Universals [as 别名]
# 或者: from Core.Universals import getTaggersMachineNames [as 别名]
def getTaggerNames():
try:
allTaggerMachineNames = uni.getTaggersMachineNames()
names, taggerMachineNames = [], []
for tagger in allTaggerMachineNames:
taggerModule = __import__("Taggers." + tagger, globals(), locals(), ["isAvailable", "Tagger"], 0)
if taggerModule.isAvailable:
names.append(taggerModule.Tagger().pluginName)
taggerMachineNames.append(tagger)
return taggerMachineNames, names
except:
ReportBug.ReportBug()
return [], []
示例3: getValueTypesAndValues
# 需要导入模块: from Core import Universals [as 别名]
# 或者: from Core.Universals import getTaggersMachineNames [as 别名]
#.........这里部分代码省略.........
"packagerUnneededDirectories": "list",
"lastUpdateControlDate": "date",
"updateInterval": ["int", list(range(0, 32))],
"isCloseOnCleanAndPackage": "bool",
"TableToolsBarButtonStyle": ["int", list(range(0, 4))],
"ToolsBarButtonStyle": ["int", list(range(0, 4))],
"PlayerBarButtonStyle": ["int", list(range(0, 4))],
"language": ["options", uni.getInstalledLanguagesCodes()],
"isShowQuickMakeWindow": "bool",
"isChangeExistIcon": "bool",
"isClearFirstAndLastSpaceChars": "bool",
"isEmendIncorrectChars": "bool",
"validSentenceStructureForFile": ["options", uni.validSentenceStructureKeys],
"validSentenceStructureForDirectory": ["options", uni.validSentenceStructureKeys],
"validSentenceStructureForFileExtension": ["options", uni.validSentenceStructureKeys],
"isCorrectFileNameWithSearchAndReplaceTable": "bool",
"isCorrectValueWithSearchAndReplaceTable": "bool",
"isCorrectDoubleSpaceChars": "bool",
"fileExtensionIs": ["options", uni.fileExtensionIsKeys],
"settingsVersion": ["options", [uni.settingVersion]],
"subDirectoryDeep": ["int", list(range(-1, 10))],
"maxRecordFileSize": "int",
"themeName": ["options", uni.getInstalledThemes()],
"unneededDirectories": "list",
"ignoredDirectories": "list",
"unneededDirectoriesIfIsEmpty": "list",
"isClearEmptyDirectoriesWhenPath": "bool",
"isAutoCleanSubFolderWhenPath": "bool",
"cleanerUnneededFileExtensions": "list",
"cleanerUnneededFiles": "list",
"cleanerUnneededDirectories": "list",
"isClearEmptyDirectoriesWhenClear": "bool",
"isAutoCleanSubFolderWhenClear": "bool",
"isClearEmptyDirectoriesWhenSave": "bool",
"isClearEmptyDirectoriesWhenMoveOrChange": "bool",
"isClearEmptyDirectoriesWhenCopyOrChange": "bool",
"isClearEmptyDirectoriesWhenFileMove": "bool",
"isAutoCleanSubFolderWhenSave": "bool",
"isAutoCleanSubFolderWhenMoveOrChange": "bool",
"isAutoCleanSubFolderWhenCopyOrChange": "bool",
"isAutoCleanSubFolderWhenFileMove": "bool",
"isAutoMakeIconToDirectoryWhenSave": "bool",
"isAutoMakeIconToDirectoryWhenMoveOrChange": "bool",
"isAutoMakeIconToDirectoryWhenCopyOrChange": "bool",
"isAutoMakeIconToDirectoryWhenFileMove": "bool",
"isDeleteEmptyDirectories": "bool",
"isCleanerDeleteEmptyDirectories": "bool",
"isPackagerDeleteEmptyDirectories": "bool",
"remindMeLaterForUpdate": ["int", list(range(-1, 7))],
"remindMeLaterShowDateForUpdate": "date",
"isShowTransactionDetails": "bool",
"isInstalledKDE4Language": "bool",
"isMakeAutoDesign": "bool",
"isShowReconfigureWizard": "bool",
"isAskIfHasManyImagesInAlbumDirectory": "bool",
"isDeleteOtherImages": "bool",
"CoversSubDirectoryDeep": ["int", [x for x in range(-1, 10) if x != 0]],
"amarokDBHost": "str",
"amarokDBPort": "int",
"amarokDBUser": "str",
"amarokDBPass": "str",
"amarokDBDB": "str",
"amarokIsUseHost": "bool",
"iconNameFormat": "str",
"iconFileType": ["options", ["png", "jpg"]],
"pathOfMysqldSafe": "str",
"isActiveCompleter": "bool",
"isShowAllForCompleter": "bool",
"isActiveClearGeneral": "bool",
"colorSchemes": "Default",
"isActiveAutoMakeIconToDirectory": "bool",
"isDontDeleteFileAndDirectory": "bool",
"pathOfDeletedFilesAndDirectories": "str",
"isReadOnlyAmarokDB": "bool",
"isReadOnlyAmarokDBHost": "bool",
"isResizeTableColumnsToContents": "bool",
"AmarokFilterAmarokCoverTable": "str",
"AmarokFilterAmarokCopyTable": "str",
"AmarokFilterArtistTable": "str",
"AmarokFilterAmarokMusicTable": "str",
"isAppendFileSizeToFileTree": "bool",
"isAppendLastModifiedToFileTree": "bool",
"isMusicTableValuesChangeInAmarokDB": "bool",
"isSubFolderTableValuesChangeInAmarokDB": "bool",
"isFileTableValuesChangeInAmarokDB": "bool",
"isFolderTableValuesChangeInAmarokDB": "bool",
"isSubFolderMusicTableValuesChangeInAmarokDB": "bool",
"isShowHiddensInSubFolderTable": "bool",
"isShowHiddensInFolderTable": "bool",
"isShowHiddensInFileTable": "bool",
"isShowHiddensInMusicTable": "bool",
"isShowHiddensInCoverTable": "bool",
"isShowHiddensInSubFolderMusicTable": "bool",
"isShowHiddensInFileTree": "bool",
"isDecodeURLStrings": "bool",
"isCheckUnSavedValues": "bool",
"isAutoSaveScripts": "bool",
"maxDeletedDirectorySize": "int",
"preferedTaggerModule": ["options", uni.getTaggersMachineNames()]
}