本文整理汇总了Python中mopidy.config.Boolean方法的典型用法代码示例。如果您正苦于以下问题:Python config.Boolean方法的具体用法?Python config.Boolean怎么用?Python config.Boolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mopidy.config
的用法示例。
在下文中一共展示了config.Boolean方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_config_schema
# 需要导入模块: from mopidy import config [as 别名]
# 或者: from mopidy.config import Boolean [as 别名]
def get_config_schema(self):
schema = super().get_config_schema()
schema["library"] = config.Deprecated()
schema["max_search_results"] = config.Integer(minimum=0)
schema["media_dir"] = config.Path()
schema["data_dir"] = config.Deprecated()
schema["playlists_dir"] = config.Deprecated()
schema["tag_cache_file"] = config.Deprecated()
schema["scan_timeout"] = config.Integer(minimum=1000, maximum=1000 * 60 * 60)
schema["scan_flush_threshold"] = config.Integer(minimum=0)
schema["scan_follow_symlinks"] = config.Boolean()
schema["included_file_extensions"] = config.List(optional=True)
schema["excluded_file_extensions"] = config.List(optional=True)
schema["directories"] = config.List()
schema["timeout"] = config.Integer(optional=True, minimum=1)
schema["use_artist_sortname"] = config.Boolean()
schema["album_art_files"] = config.List(optional=True)
return schema
示例2: get_config_schema
# 需要导入模块: from mopidy import config [as 别名]
# 或者: from mopidy.config import Boolean [as 别名]
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['directories'] = config.List()
schema['timeout'] = config.Integer(optional=True, minimum=1)
schema['use_album_mbid_uri'] = config.Boolean()
schema['use_artist_mbid_uri'] = config.Boolean()
schema['use_artist_sortname'] = config.Boolean()
# no longer used
schema['search_limit'] = config.Deprecated()
schema['extract_images'] = config.Deprecated()
schema['image_dir'] = config.Deprecated()
schema['image_base_uri'] = config.Deprecated()
schema['album_art_files'] = config.Deprecated()
return schema
示例3: get_config_schema
# 需要导入模块: from mopidy import config [as 别名]
# 或者: from mopidy.config import Boolean [as 别名]
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['username'] = config.String(optional=True)
schema['password'] = config.Secret(optional=True)
schema['quality'] = config.String(optional=True)
schema['difm'] = config.Boolean(optional=True)
schema['radiotunes'] = config.Boolean(optional=True)
schema['rockradio'] = config.Boolean(optional=True)
schema['jazzradio'] = config.Boolean(optional=True)
schema['frescaradio'] = config.Boolean(optional=True)
return schema
示例4: get_config_schema
# 需要导入模块: from mopidy import config [as 别名]
# 或者: from mopidy.config import Boolean [as 别名]
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['debug_gpio_simulate'] = config.Boolean()
schema['pin_button_main'] = config.Integer()
schema['pin_button_next'] = config.Integer()
schema['pin_button_previous'] = config.Integer()
schema['pin_button_vol_up'] = config.Integer()
schema['pin_button_vol_down'] = config.Integer()
schema['pin_play_led'] = config.Integer()
schema['tts_default_volume'] = config.Integer()
return schema
示例5: get_config_schema
# 需要导入模块: from mopidy import config [as 别名]
# 或者: from mopidy.config import Boolean [as 别名]
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['client_id'] = config.String()
schema['client_secret'] = config.String()
schema['mopidy_token_url'] = config.String()
schema['spotify_token_url'] = config.String()
schema['use_mopidy_oauth_bridge'] = config.Boolean()
schema['refresh_token'] = config.String()
return schema