当前位置: 首页>>代码示例>>Python>>正文


Python ext.Extension方法代码示例

本文整理汇总了Python中mopidy.ext.Extension方法的典型用法代码示例。如果您正苦于以下问题:Python ext.Extension方法的具体用法?Python ext.Extension怎么用?Python ext.Extension使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mopidy.ext的用法示例。


在下文中一共展示了ext.Extension方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: get_config_schema

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [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 
开发者ID:mopidy,项目名称:mopidy-local-sqlite,代码行数:16,代码来源:__init__.py

示例2: get_config_schema

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [as 别名]
def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['server'] = config.String()
        schema['username'] = config.String()
        schema['password'] = config.Secret()
        return schema 
开发者ID:havardgulldahl,项目名称:mopidy_plex,代码行数:8,代码来源:__init__.py

示例3: get_config_schema

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [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 
开发者ID:nilicule,项目名称:mopidy-audioaddict,代码行数:13,代码来源:__init__.py

示例4: get_config_schema

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [as 别名]
def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['username'] = config.String()
        schema['password'] = config.Secret()
        schema['quality'] = config.String(choices=["LOSSLESS", "HIGH", "LOW"])
        return schema 
开发者ID:tehkillerbee,项目名称:mopidy-tidal,代码行数:8,代码来源:__init__.py

示例5: webapp

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [as 别名]
def webapp(self, config, core):
        from .web import ImageHandler, IndexHandler

        image_dir = self.get_image_dir(config)
        return [
            (r"/(index.html)?", IndexHandler, {"root": image_dir}),
            (r"/(.+)", ImageHandler, {"path": image_dir}),
        ]

    # TODO: Add *paths to Extension.get_data_dir()? 
开发者ID:mopidy,项目名称:mopidy-local,代码行数:12,代码来源:__init__.py

示例6: get_config_schema

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [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 
开发者ID:9and3r,项目名称:mopidy-ttsgpio,代码行数:13,代码来源:__init__.py

示例7: get_config_schema

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [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 
开发者ID:lfcabend,项目名称:mopidy-spotify-web,代码行数:11,代码来源:__init__.py

示例8: get_config_schema

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [as 别名]
def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['topic'] = config.String()
        schema['mqtthost'] = config.String()
        schema['mqttport'] = config.Integer()
        schema['username'] = config.String()
        schema['password'] = config.String()
        schema['stoppedimage'] = config.String()
        schema['defaultimage'] = config.String()
        return schema 
开发者ID:magcode,项目名称:mopidy-mqtt,代码行数:12,代码来源:__init__.py

示例9: get_config_schema

# 需要导入模块: from mopidy import ext [as 别名]
# 或者: from mopidy.ext import Extension [as 别名]
def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['username'] = config.String()
        schema['user_id'] = config.String(optional=True)
        schema['password'] = config.Secret(optional=True)
        schema['hostname'] = config.String()
        schema['libraries'] = config.String(optional=True)
        schema['albumartistsort'] = config.String(optional=True)
        schema['port'] = config.Port(optional=True)
        schema['client_cert'] = config.String(optional=True)
        schema['client_key'] = config.String(optional=True)
        schema['album_format'] = config.String(optional=True)
        schema['max_bitrate'] = config.Integer(optional=True)

        return schema 
开发者ID:jellyfin,项目名称:mopidy-jellyfin,代码行数:17,代码来源:__init__.py


注:本文中的mopidy.ext.Extension方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。