コード例 #1
0
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()

        schema['username'] = config.String()
        schema['password'] = config.Secret()

        schema['client_id'] = config.String()
        schema['client_secret'] = config.Secret()

        schema['bitrate'] = config.Integer(choices=(96, 160, 320))
        schema['volume_normalization'] = config.Boolean()
        schema['private_session'] = config.Boolean()

        schema['timeout'] = config.Integer(minimum=0)

        schema['cache_dir'] = config.Deprecated()  # since 2.0
        schema['settings_dir'] = config.Deprecated()  # since 2.0

        schema['allow_cache'] = config.Boolean()
        schema['allow_network'] = config.Boolean()
        schema['allow_playlists'] = config.Boolean()

        schema['search_album_count'] = config.Integer(minimum=0, maximum=200)
        schema['search_artist_count'] = config.Integer(minimum=0, maximum=200)
        schema['search_track_count'] = config.Integer(minimum=0, maximum=200)

        schema['toplist_countries'] = config.List(optional=True)

        return schema
コード例 #2
0
ファイル: __init__.py プロジェクト: z-maker/mopidy-spotify
    def get_config_schema(self):
        schema = super().get_config_schema()

        schema["username"] = config.String()
        schema["password"] = config.Secret()

        schema["client_id"] = config.String()
        schema["client_secret"] = config.Secret()

        schema["bitrate"] = config.Integer(choices=(96, 160, 320))
        schema["volume_normalization"] = config.Boolean()
        schema["private_session"] = config.Boolean()

        schema["timeout"] = config.Integer(minimum=0)

        schema["cache_dir"] = config.Deprecated()  # since 2.0
        schema["settings_dir"] = config.Deprecated()  # since 2.0

        schema["allow_cache"] = config.Boolean()
        schema["allow_network"] = config.Boolean()
        schema["allow_playlists"] = config.Boolean()

        schema["search_album_count"] = config.Integer(minimum=0, maximum=200)
        schema["search_artist_count"] = config.Integer(minimum=0, maximum=200)
        schema["search_track_count"] = config.Integer(minimum=0, maximum=200)

        schema["toplist_countries"] = config.List(optional=True)

        return schema
コード例 #3
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['lastfm_username'] = config.String()
     schema['lastfm_password'] = config.Secret()
     schema['librefm_username'] = config.String()
     schema['librefm_password'] = config.Secret()
     return schema
コード例 #4
0
    def get_config_schema(self):
        schema = super(BAMPExtension, self).get_config_schema()
        schema['hostname'] = config.Hostname()
        schema['port'] = config.Port()
        schema['zeroconf'] = config.String(optional=True)
        schema['allowed_origins'] = config.List(optional=True)
        schema['csrf_protection'] = config.Boolean(optional=True)
        schema['xheaders_enabled'] = config.Boolean(optional=False)
        schema['cookie_secret'] = config.Secret()
        schema['ldap_uri'] = config.Secret()
        schema['ldap_schema'] = config.Secret()
        schema['downvotes_before_remove'] = config.Integer(minimum=1)
        schema['downvotes_difference_before_remove'] = config.Integer(
            optional=True)
        schema['allow_vote_on_own_tracks'] = config.Boolean(optional=False)
        schema['negative_scores_affect_ordering'] = config.Boolean(
            optional=False)
        schema['seconds_before_replay_allowed'] = config.Integer(minimum=0)
        schema['max_history_count'] = config.Integer(minimum=1)
        schema['max_alias_length'] = config.Integer(minimum=1)
        schema['slack_web_hook'] = config.String(optional=False)
        schema['build_hash'] = config.String(optional=False)
        schema['icecast_url'] = config.String(optional=True)
        schema['use_ldap_starttls'] = config.Boolean(optional=False)
        schema['ldap_certificate_path'] = config.String(optional=False)

        return schema
コード例 #5
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['server'] = config.String()
     schema['username'] = config.String()
     schema['password'] = config.Secret()
     schema['token'] = config.Secret()
     schema['library_id'] = config.String()
     return schema
コード例 #6
0
ファイル: __init__.py プロジェクト: secondwtq/mopidy-qobuz
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()

        schema["username"] = config.String()
        schema["password"] = config.Secret()

        schema["client_id"] = config.String()
        schema["client_secret"] = config.Secret()

        return schema
コード例 #7
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['consumerkey'] = config.String()
     schema['consumersecret'] = config.Secret()
     schema['token'] = config.String()
     schema['secret'] = config.Secret()
     schema['username'] = config.String()
     schema['playlist'] = config.String()
     schema['master'] = config.Boolean()
     return schema
コード例 #8
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["explore_songs"] = config.Integer(optional=True)
     schema["auth_token"] = config.Secret()
     schema["explore"] = config.Deprecated()
     schema["explore_pages"] = config.Deprecated()
     return schema
コード例 #9
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['host'] = config.String()
     schema['user'] = config.String()
     schema['password'] = config.Secret()
     schema['cache_time'] = config.Integer()
     return schema
コード例 #10
0
ファイル: __init__.py プロジェクト: sixisgoood/mopidy-gmusic
    def get_config_schema(self):
        schema = super().get_config_schema()

        schema["username"] = config.Deprecated()
        schema["password"] = config.Deprecated()

        schema["refresh_token"] = config.Secret(optional=True)

        schema["bitrate"] = config.Integer(choices=(128, 160, 320))

        schema["deviceid"] = config.String(optional=True)

        schema["all_access"] = config.Boolean(optional=True)

        schema["refresh_library"] = config.Integer(minimum=-1, optional=True)
        schema["refresh_playlists"] = config.Integer(minimum=-1, optional=True)

        schema["radio_stations_in_browse"] = config.Boolean(optional=True)
        schema["radio_stations_as_playlists"] = config.Boolean(optional=True)
        schema["radio_stations_count"] = config.Integer(minimum=1,
                                                        optional=True)
        schema["radio_tracks_count"] = config.Integer(minimum=1, optional=True)

        schema["top_tracks_count"] = config.Integer(minimum=1, optional=True)

        return schema
コード例 #11
0
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()

        schema["username"] = config.String()
        schema["password"] = config.Secret(optional = True)

        return schema
コード例 #12
0
ファイル: __init__.py プロジェクト: gregvanl/mopidy-azure
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["account_name"] = config.String()
     schema["account_key"] = config.Secret()
     schema["songs_container"] = config.String()
     schema["cache_container"] = config.String()
     return schema
コード例 #13
0
 def get_config_schema(self):
     schema = super(SoundCloudExtension, self).get_config_schema()
     schema['explore_songs'] = config.Integer(optional=True)
     schema['auth_token'] = config.Secret()
     schema['explore'] = config.Deprecated()
     schema['explore_pages'] = config.Deprecated()
     return schema
コード例 #14
0
ファイル: __init__.py プロジェクト: ablanchard/mopidy-dashing
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config.String()
     schema['port'] = config.Integer(optional=True)
     schema['widget'] = config.String()
     schema['auth_token'] = config.Secret()
     return schema
コード例 #15
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port()
     schema['password'] = config.Secret(optional=True)
     schema['max_connections'] = config.Integer(minimum=1)
     schema['connection_timeout'] = config.Integer(minimum=1)
     return schema
コード例 #16
0
ファイル: __init__.py プロジェクト: zippyy/mopidy-subidy
 def get_config_schema(self):
     schema = super(SubidyExtension, self).get_config_schema()
     schema['url'] = config.String()
     schema['username'] = config.String()
     schema['password'] = config.Secret()
     schema['legacy_auth'] = config.Boolean(optional=True)
     schema['api_version'] = config.String(optional=True)
     return schema
コード例 #17
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["url"] = config.String()
     schema["username"] = config.String()
     schema["password"] = config.Secret()
     schema["legacy_auth"] = config.Boolean(optional=True)
     schema["api_version"] = config.String(optional=True)
     return schema
コード例 #18
0
ファイル: __init__.py プロジェクト: jeinarsson/mopidy
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['username'] = config.String()
     schema['password'] = config.Secret()
     schema['bitrate'] = config.Integer(choices=(96, 160, 320))
     schema['timeout'] = config.Integer(minimum=0)
     schema['cache_dir'] = config.Path()
     return schema
コード例 #19
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port()
     schema['ssl'] = config.String()
     schema['username'] = config.String()
     schema['password'] = config.Secret()
     return schema
コード例 #20
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["admin_password"] = config.Secret()
     schema["stream_url"] = config.String(optional=True)
     schema["fallback_playlist_uri"] = config.String(optional=True)
     schema["shuffle_fallback_playlist"] = config.Boolean(optional=True)
     schema["enable_play_button"] = config.Boolean(optional=True)
     return schema
コード例 #21
0
 def get_config_schema(self):
     schema = super().get_config_schema()
     # TODO: Comment in and edit, or remove entirely
     schema["username"] = config.String()
     schema["password"] = config.Secret()
     schema["quality"] = config.String(True,
                                       choices=['low', 'high', 'lossless'])
     return schema
コード例 #22
0
 def get_config_schema(self):
     schema = super(SubsonicExtension, self).get_config_schema()
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port()
     schema['username'] = config.String()
     schema['password'] = config.Secret()
     schema['ssl'] = config.Boolean()
     schema['context'] = config.String(optional=True)
     return schema
コード例 #23
0
 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"])
     schema['spotify_proxy'] = config.Boolean(optional=True)
     schema['spotify_client_id'] = config.String(optional=True)
     schema['spotify_client_secret'] = config.String(optional=True)
     return schema
コード例 #24
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['username'] = config.String()
     schema['password'] = config.Secret()
     schema['bitrate'] = config.Integer(choices=(96, 160, 320))
     schema['timeout'] = config.Integer(minimum=0)
     schema['cache_dir'] = config.Path(optional=True)
     schema['settings_dir'] = config.Path()
     schema['toplist_countries'] = config.List(optional=True)
     return schema
コード例 #25
0
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['token'] = config.Secret()
     schema['oauth'] = config.String()
     schema['oauth_port'] = config.Integer(optional=True,
                                           choices=range(8000, 10000))
     schema['image_search'] = config.Boolean()
     schema['quality'] = config.String(
         choices=["HI_RES", "LOSSLESS", "HIGH", "LOW"])
     return schema
コード例 #26
0
    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()

        schema['host'] = config.Hostname()
        schema['port'] = config.Port(optional=True)
        schema['topic'] = config.String()

        schema['username'] = config.String(optional=True)
        schema['password'] = config.Secret(optional=True)

        return schema
コード例 #27
0
 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
コード例 #28
0
ファイル: __init__.py プロジェクト: zvonimirfras/mopidy
 def get_config_schema(self):
     schema = super(Extension, self).get_config_schema()
     schema['hostname'] = config.Hostname()
     schema['port'] = config.Port(optional=True)
     schema['password'] = config.Secret(optional=True)
     schema['max_connections'] = config.Integer(minimum=1)
     schema['connection_timeout'] = config.Integer(minimum=1)
     schema['zeroconf'] = config.String(optional=True)
     schema['command_blacklist'] = config.List(optional=True)
     schema['default_playlist_scheme'] = config.String()
     return schema
コード例 #29
0
ファイル: __init__.py プロジェクト: xsteadfastx/mopidy-emby
    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()
        schema['hostname'] = config.String()
        schema['port'] = config.Port()
        schema['client_cert'] = config.String(optional=True)
        schema['client_key'] = config.String(optional=True)

        return schema
コード例 #30
0
ファイル: __init__.py プロジェクト: vincentDcmps/mopidy-mpd
 def get_config_schema(self):
     schema = super().get_config_schema()
     schema["hostname"] = config.Hostname()
     schema["port"] = config.Port(optional=True)
     schema["password"] = config.Secret(optional=True)
     schema["max_connections"] = config.Integer(minimum=1)
     schema["connection_timeout"] = config.Integer(minimum=1)
     schema["zeroconf"] = config.String(optional=True)
     schema["command_blacklist"] = config.List(optional=True)
     schema["default_playlist_scheme"] = config.String()
     return schema